0.1.0 • Published 9 years ago

jstransformer-dust v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

jstransformer-dust

Dust.js support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-dust

API

var dust = require('jstransformer')(require('jstransformer-dust'))

var locals = {
  features: [
    {name: "async"},
    {name: "helpers"},
    {name: "filters"},
    {name: "a little bit of logic"},
    {name: "and more"}
  ]
};
dust.renderAsync('Dust does {#features}{name}{@sep}, {/sep}{/features}!', locals).then(function (result) {
  result
  //=> 'Dust does async, helpers, filters, a little bit of logic, and more!'
})

License

MIT