Musterb
This is a gem that lets you compile mustache to erb so that rails will do all the nice caching and such that it does for ERB.
Installation
Add this line to your application's Gemfile:
gem 'musterb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install musterb
Usage
Add this into config/initializers/musterb_handler.rb
require 'musterb/template_handler'
ActionView::Template.register_template_handler :mustache, Musterb::TemplateHandler
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request