dustjs-linkedin-brunch
Adds Dustjs (LinkedIn fork) support to brunch.
Last updated 7 years ago by mgarbacz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dustjs-linkedin-brunch 
SYNC missed versions from official npm registry.

dustjs-linkedin-brunch

Adds Dustjs (LinkedIn fork) support to brunch.

Installation

Add "dustjs-linkedin-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, use "dustjs-linkedin-brunch": "git@github.com:mgarbacz/dustjs-linkedin-brunch.git" instead.

Usage

Create a template:

# views/templates/example.dust
<h1>Hello {{name}}!</h1>

Require the template into a variable:

template = require 'views/templates/example'

Load template into the dust.cache object:

dust.loadSource template

Render the template:

dust.render 'example', { 'name': 'Batman' }, (error, output) =>
  @$el.html output if not error

For more info visit the docs prepared by LinkedIn.

Current Tags

  • 1.7.3                                ...           latest (7 years ago)

10 Versions

  • 1.7.3                                ...           7 years ago
  • 1.7.2                                ...           7 years ago
  • 1.7.1                                ...           7 years ago
  • 1.7.0                                ...           7 years ago
  • 1.6.2                                ...           7 years ago
  • 1.6.1                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
  • 1.5.2                                ...           7 years ago
  • 1.5.1                                ...           7 years ago
  • 1.5.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |