Skip to content

caikaijie/emblem-brunch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Emblem.js for Brunch.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 72.5%
  • JavaScript 27.5%