瀏覽代碼

Remove stray code block delimiter; simplify explanation of tags property

pull/575/head
outghter 9 年之前
父節點
當前提交
2ef580ea1d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      README.md

+ 1
- 2
README.md 查看文件

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

#### Setting in JavaScript

The `tags` property of the `Mustache` object 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 passing a new array of tags to `parse()`, which gets honored over the default values, or by overriding the `tags` property itself:

```js
var customTags = [ '<%', '%>' ];
@@ -514,7 +514,6 @@ Mustache.parse(template, customTags);
Mustache.tags = customTags;
// Subsequent parse() and render() calls will use customTags
```
```

#### Setting in Templates



Loading…
取消
儲存