Deprecated
The Dust project is no longer maintained.
gulp-dust
Precompile Dust templates
Issues with the output should be reported on the Dust issue tracker.
Install
$ npm install --save-dev gulp-dust
Usage
const gulp = ;const dust = ; gulp;
API
dust([options])
options
Type: Object
name
Type: Function
Default: Filename (templates/list.html
=> list
)
You can override the default behavior by supplying a function which gets the current File object and is expected to return the name.
Example:
;
config
Type: Object
Default: {whitespace: false, amd: false, cjs: false}
Corresponds to dust.config
. Use it to override any dust configuration value.
whitespace
Type: boolean
Default: false
Preserve whitespace.
amd
Type: boolean
Default: false
Compile as AMD modules.
cjs
Type: boolean
Default: false
Compile as CommonJS modules.
License
MIT © Sindre Sorhus