cd122b24 by Michael Richards

Allow disabling template parsing by setting Rivets.config.templateDelimiters to …

…false, undefined or null. [#181]
1 parent a4800c6e
......@@ -213,8 +213,8 @@ class Rivets.View
unless node in skipNodes
if node.nodeType is Node.TEXT_NODE
parser = Rivets.TextTemplateParser
delimiters = @config.templateDelimiters
if delimiters = @config.templateDelimiters
if (tokens = parser.parse(node.data, delimiters)).length
unless tokens.length is 1 and tokens[0].type is parser.types.text
[startToken, restTokens...] = tokens
......