Last Updated: February 25, 2016
·
2.218K
· mehulkar

Hamlbars with Ember.js & Rails 3+

You must do 3 things to use hamlbars with Ember.js in Rails 3


  1. Add gem 'hamlbars' to Gemfile && bundle
  2. Add the line below to config/initializers/hamlbars.rb && restart server
  3. And ember templates must be named with a *.hamlbars extension

# config/intializers/hamlbars.rb

Hamlbars::Template.render_templates_for :ember