Handlebars.js for Rails 3.2. Handlebars version is 1.0.0-rc.3.
Add the gem to your application Gemfile:
gem 'handlebars-rails', :git => 'git://github.com/kolo/handlebars-rails.git'
bundle install and add folowing lines to
//= require handlebars
Now you can create hadlebars template files by putting each template in
dedicated '.jst.hjs' file (e.g.
Now you can add this file in
application.js or load it in the layout.
be available as
This gem was insired by sproutcore-rails and I used code from that gem.