소스 검색

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;
}


불러오는 중...
취소
저장