hoganjs-brunch
Adds Mustache support to Brunch via Hogan.js.
Last updated 3 years ago by paulmillr .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hoganjs-brunch 
SYNC missed versions from official npm registry.

hoganjs-brunch

Adds Hogan.js support to Brunch.

Installation

npm install --save-dev hoganjs-brunch

Or add "hoganjs-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 "hoganjs-brunch": "git@github.com:mdp/hoganjs-brunch.git".

Usage:

Create a Mustache template:

I live in {{name}}

Require the template:

const template = require('views/templates/city');

Render the template with some data:

document.body.innerHTML = template.render({'name': 'San Francisco'});

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

4 Versions

  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |