emblem-brunch

0.1.1 • Public • Published

emblem-brunch

Adds Emblem support to brunch.

Installation

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+https://github.com/machty/emblem-brunch.git".

Download Emblem and Handlebars.

Usage

exports.config =
  files:
    # ... 
    templates:
      precompile: true
      root: 'templates'
      defaultExtension: 'emblem'
      joinTo: 'javascripts/app.js'
      paths:
        # 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'

With Ember

Require templates in your main script.

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

This will configure Ember.TEMPLATES automatically.

Without Ember

Require templates where you need them.

index_template = require 'templates/index'

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i emblem-brunch

Weekly Downloads

539

Version

0.1.1

License

none

Last publish

Collaborators

  • machty