Quellcode durchsuchen

Remove stray code block delimiter; simplify explanation of tags property

pull/575/head
outghter vor 9 Jahren
Ursprung
Commit
2ef580ea1d
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. +1
    -2
      README.md

+ 1
- 2
README.md Datei anzeigen

@@ -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



Laden…
Abbrechen
Speichern