diff --git a/README.md b/README.md index fa33ee535..b7baa5c40 100644 --- a/README.md +++ b/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; diff --git a/mustache.js b/mustache.js index 5840d3b28..27704b8ee 100644 --- a/mustache.js +++ b/mustache.js @@ -439,7 +439,8 @@ }; /** - * Parses and caches the given `template` and returns the array of tokens + * Parses and caches the given `template` according to the given `tags` or + * `mustache.tags` if `tags` is omitted, and returns the array of tokens * that is generated from the parse. */ Writer.prototype.parse = function parse (template, tags) {