Dust Processor
This module is a set of tools to integrate and make easier the use of dust templates.
Installation
Same as any node module
npm install dust-processor
Usage
var dust = ;var dustp = ; //Node.js require integration for handling .dust filesdustp; //Browserify-middleware supportapp;
Options
dust
(required, Object) ... Dust is passed in to prevent multiple instances, as well as version conflictsbaseDir
(required, String) ... this is the directory templates are named relative toPromise
(optional, Constructor) ... uses bluebird by default, this is used as the constructor for render calls (when using promises instead of callbacks)promiselib
(optional, String,bluebird
) ... the string torequire
to make promises available when generating modules for the browserdustlib
(optional, String,dustjs-linkedin/dist/dust-core.js
) ... the string torequire
to get the dust-core library in the browserdefine
(optional, Boolean,false
) ... controls wrapping modules in adefine()
wrapper for requirejsrenderStyle
(Optional, Enum,hybrid
) Controls the generated api for the browserpromise
... Use the promise api exclusivelycallback
... Use the callback api exclusivelyhybrid
... Select promise or callback depending on if a callback was passed or not