grunt-dustin
Better templating with LinkedIn's dust fork.
Grunt task
Render options
render
Boolean
Type: This tells the task to render templates.
resolve
String
Type: Passed to the adapter as the resolve option.
preserveWhiteSpace
Boolean
Type: Same as adapter option.
data
String
Type: "test/data/*.json"
Example: Passed to the adapter as the data option.
helpers
String
Type: "test/helpers/*.js"
Example: Register helpers for the render context. Passed to the adapter as the helpers option.
cache
Boolean
Type: Propagates to the adapter cache option.
Compile options
compile
Boolean
Type: This tells the target to compile templates.
resolve
String
Type: Passed to the adapter as the resolve option.
preserveWhiteSpace
Boolean
Type: Same as for rendering.
concat
Boolean
Type: This tells the target to concatenate files into the dest file. See the Grunt task config example for details.
Copy options
copy
String
Type: "test/out/js/"
Example: Copy client side libraries to this folder. If this option is set, rendering and compiling is ignored.
resolve
String
Type: "js/"
Example: The client side script will prefix partial paths with this to load them.
This:
{>"some/partial"/}
will resolve to this template: js/some/partial.js
.
helpers
String
Type: "test/helpers/client/*.js"
Example: If set, the client scripts will include these helpers.
Example helper file:
dusthelpers{ return chunk}
dustinHelpers
Boolean
Type: Include dustin helpers to client side.
You can see what helpers are available on the client side in the module dir lib/client/helpers
.
dustHelpers
Boolean
Type: Include the dustjs helpers to client side.
Task config
grunt
Licence
MIT