Call parse with the set of delimiters defined on the view's config property. [#181]
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -213,8 +213,9 @@ class Rivets.View | ... | @@ -213,8 +213,9 @@ 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 | ||
216 | 217 | ||
217 | if (tokens = parser.parse node.data).length | 218 | if (tokens = parser.parse(node.data, delimiters)).length |
218 | 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 |
219 | [startToken, restTokens...] = tokens | 220 | [startToken, restTokens...] = tokens |
220 | node.data = startToken.value | 221 | node.data = startToken.value | ... | ... |
-
Please register or sign in to post a comment