Emblem::Rails

Integrate Emblem.js with ember-rails

Installation

Add gem 'emblem-rails' to your application's Gemfile after ember-rails:

gem 'ember-rails'
gem 'emblem-rails'

# If you are using Ember 1.9, you will currently need to specify the master branch of 
# emblem source, and a fork of barber-emblem:

gem "emblem-source", github: "machty/emblem.js"
gem "barber-emblem", github: "simcha/barber-emblem"

And then execute:

$ bundle

Now any templates ending in .emblem will be compiled as Ember-Handlebars templates. If you need to compile your Emblem templates with vanilla Handlebars, use the .raw.emblem extension.

Upgrading to the latest Emblem

This gem is only responsible for integrating Emblem.js with Rails. Any updates to the Emblem language itself can be pulled in via

$ bundle update emblem-source