dustjs v2.7.1 Release Notes
Release Date: 2015-04-30 // almost 9 years ago-
- ⚡️ #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 todust.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 theonLoad
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)