node package manager


Adds Emblem.js support to brunch.

Adds Emblem support to brunch.

Add "emblem-brunch": "x.y.z" to package.json of your brunch app.

Pick a plugin version that corresponds to your minor (y) brunch version.

If you want to use git version of plugin, add "emblem-brunch": "git+".

Download Emblem and Handlebars.

exports.config =
    # ... 
      precompile: true
      root: 'templates'
      defaultExtension: 'emblem'
      joinTo: 'javascripts/app.js'
        # If you don't specify jquery and ember there, 
        # raw (non-Emberized) Handlebars templates will be compiled. 
        jquery: 'vendor/scripts/jquery-1.9.0.min.js'
        ember: 'vendor/scripts/ember-latest.js'
        handlebars: 'handlebars.js'
        emblem: 'emblem.js'

Require templates in your main script.

require 'templates/application'
require 'templates/index'

This will configure Ember.TEMPLATES automatically.

Require templates where you need them.

index_template = require 'templates/index'

Based on handlebars-brunch and ember-precompiler-brunch.