Dust.js support for JSTransformers.
npm install jstransformer-dust
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!'
})
MIT