MyGit

v2.7.1

linkedin/dustjs

版本发布时间: 2015-05-01 04:55:54

linkedin/dustjs最新发布版本:v3.0.1(2021-12-30 02:22:21)

Notable Changes

dust.config.cache

In previous versions, setting dust.config.cache 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. Setting it back to true means that previously-cached templates will be ready to use.

dust.onLoad

We have added a callback(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.

You can still call the callback with uncompiled template source and Dust will compile and store it, while respecting your dust.config.cache setting.

dust.makeBase

dust.makeBase is now aliased to dust.context.

Errata

Dust 2.7.0 broke backwards compatibility with older Dust compilers. This regression has been fixed so templates compiled with older versions of Dust will continue to work with Dust 2.7.1; you can use an older compiler if needed.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2015-05-01发行的版本