瀏覽代碼

Update README.md to reflect correct caching behavior

pull/671/head
raymond.lam 7 年之前
父節點
當前提交
622b9c9b23
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. +1
    -6
      README.md

+ 1
- 6
README.md 查看文件

@@ -504,17 +504,12 @@ Custom delimiters can be used in place of `{{` and `}}` by setting the new value

#### Setting in JavaScript

The `Mustache.tags` property holds an array consisting of the opening and closing tag values. Set custom values by passing a new array of tags to `parse()`, which gets honored over the default values, or by overriding the `tags` property itself:
The `Mustache.tags` property holds an array consisting of the opening and closing tag values. Set custom values by setting this property.

```js
var customTags = [ '<%', '%>' ];
```

##### Pass Value into Parse Method
```js
Mustache.parse(template, customTags);
```

##### Override Tags Property
```js
Mustache.tags = customTags;


Loading…
取消
儲存