Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
386f1c8d
authored
2013-06-24 21:20:52 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Call parse with the set of delimiters defined on the view's config property. [#181]
1 parent
ee80701f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
386f1c8
...
...
@@ -213,8 +213,9 @@ class Rivets.View
unless
node
in
skipNodes
if
node
.
nodeType
is
Node
.
TEXT_NODE
parser
=
Rivets
.
TextTemplateParser
delimiters
=
@
config
.
templateDelimiters
if
(
tokens
=
parser
.
parse
node
.
data
).
length
if
(
tokens
=
parser
.
parse
(
node
.
data
,
delimiters
)
).
length
unless
tokens
.
length
is
1
and
tokens
[
0
].
type
is
parser
.
types
.
text
[
startToken
,
restTokens
...]
=
tokens
node
.
data
=
startToken
.
value
...
...
Please
register
or
sign in
to post a comment