Where developers come to connect, share, build and be inspired.

4

Hamlbars with Ember.js & Rails 3+

1161 views

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

Comments

Add a comment