Allow disabling template parsing by setting Rivets.config.templateDelimiters to …
…false, undefined or null. [#181]
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -213,8 +213,8 @@ class Rivets.View | ... | @@ -213,8 +213,8 @@ class Rivets.View |
213 | unless node in skipNodes | 213 | unless node in skipNodes |
214 | if node.nodeType is Node.TEXT_NODE | 214 | if node.nodeType is Node.TEXT_NODE |
215 | parser = Rivets.TextTemplateParser | 215 | parser = Rivets.TextTemplateParser |
216 | delimiters = @config.templateDelimiters | ||
217 | 216 | ||
217 | if delimiters = @config.templateDelimiters | ||
218 | if (tokens = parser.parse(node.data, delimiters)).length | 218 | if (tokens = parser.parse(node.data, delimiters)).length |
219 | unless tokens.length is 1 and tokens[0].type is parser.types.text | 219 | unless tokens.length is 1 and tokens[0].type is parser.types.text |
220 | [startToken, restTokens...] = tokens | 220 | [startToken, restTokens...] = tokens | ... | ... |
-
Please register or sign in to post a comment