0.1.0 • Published 9 years ago
jstransformer-dust v0.1.0
jstransformer-dust
Dust.js support for JSTransformers.
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