Easily setup and use handlebars.js with rails 3.1
This gem requires the use of rails 3.1 and the use of sprockets for asset packaging.
This gem vendors the latest version of handlebars.js for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.
You need to add the following line to the file
//= require handlebars
In your Gemfile, add this line:
bundle install. You're done!
Any file with the extension '.js.hbs' will get compiled using handlebars templates
will be compiled and available on the client as JST.hello