Преглед на файлове

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…
Отказ
Запис