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 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 [email protected] 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)