Hamlbars with Ember.js & Rails 3+
You must do 3 things to use hamlbars with Ember.js in Rails 3
- Add gem 'hamlbars' to Gemfile && bundle
- Add the line below to config/initializers/hamlbars.rb && restart server
- And ember templates must be named with a *.hamlbars extension
# config/intializers/hamlbars.rb
Hamlbars::Template.render_templates_for :ember
Written by Mehul Kar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#