Skip to content

jstransformers/jstransformer-dust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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