Dust.js
Asynchronous Javascript templating for the browser and server. This fork is maintained by LinkedIn.
Install
NPM
npm install --save --production dustjs-linkedin
# If you want the dustc compiler available globally
npm install -g dustjs-linkedin
If you want to add the Dust helpers or secure filters:
npm install --save --production dustjs-helpers
npm install --save --production dustjs-filters-secure
Bower
bower install --save dustjs-linkedin
Get Started
- Read dustjs.com for guides, tutorials, and documentation.
- Check out the
examples/
directory in the repo for simple examples to help you get started using Dust in a variety of ways.
Contribute
- The team provides support on Stack Overflow, so that's the best place to ask questions.
- Bug or feature? We welcome issues and pull requests! If you'd like to submit a PR, check out the guide to contributing. PRs should include unit tests.
v2.7.1 (2015/04/30 20:32 +00:00)
- #655 Update CommonJS example to make use of new onLoad behavior (@sethkinast)
- #653 Fix array iteration when context is undefined (@sethkinast)
- #641 Add a
cb(null, compiledTemplate)
signature to dust.onLoad
Calling the onLoad
callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so the onLoad
function should handle registration as it needs.
dust.cache
behavior has been changed slightly. Before, setting it to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used, but if it's set to true again previously-cached templates will be ready to use. (@sethkinast)
- #650 Pin jasmine@2.2.x for grunt-jasmine-nodejs (@sethkinast)
- #646 Update AMD and CommonJS examples (@sethkinast)
- #637 CommonJS example (@sethkinast)
- #638 Preserve compiler backwards compatibility with pre-2.7 versions (@sethkinast)
- #639 Fix failing test on Windows (@sethkinast)