· July 2012 ·

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
Sign in or sign up to add your response.