浏览代码

Documented external caching API inline

pull/731/head
Andrew Leedham 6 年前
父节点
当前提交
a746e071ea
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      mustache.mjs

+ 8
- 0
mustache.mjs 查看文件

@@ -669,9 +669,17 @@ var mustache = {
Scanner: undefined,
Context: undefined,
Writer: undefined,
/**
* Allows a user to override the default caching strategy, by providing an
* object with set, get and clear methods. This can also be used to disable
* the cache by setting it to the literal `undefined`.
*/
set templateCache (cache) {
defaultWriter.templateCache = cache;
},
/**
* Gets the default or overridden caching object from the default writer.
*/
get templateCache () {
return defaultWriter.templateCache;
}


正在加载...
取消
保存