Render dust templates into HTML
Issues with the output should be reported on the Dust issue tracker.
Install
$ npm install --save-dev gulp-dust-html dustjs-linkedin
Usage
var gulp = ;var dust = ;dusthelpers = helpers;var dusthtml = ; gulp;
API
dust([options])
options
basePath
Type: string
Default: '.'
Relative templates directory path (used to resolve partials).
Example: templates
whitespace
Type: boolean
Default: false
Preserve whitespace.
data
Type: object
or function
Default: {}
Context which is passed to dust templates. If a function is provided the function will be called with one parameter, the name of the file
defaultExt
Type: string
Default: .dust
Default extension used for templates
Todo
- Update tests to reflect the new codebase
- Think of a better way to handle context passing (maybe a
contents
directory?)
License
MIT