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
3a018796
authored
2012-10-18 19:10:20 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'toplevel-keypath-support'
2 parents
1c10de2b
2b4d245f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
3a01879
...
...
@@ -150,8 +150,12 @@ class Rivets.View
path
=
context
.
shift
()
splitPath
=
path
.
split
/\.|:/
options
.
formatters
=
pipes
model
=
@
models
[
splitPath
.
shift
()]
options
.
bypass
=
path
.
indexOf
(
':'
)
!=
-
1
if
splitPath
[
0
]
model
=
@
models
[
splitPath
.
shift
()]
else
model
=
@
models
splitPath
.
shift
()
keypath
=
splitPath
.
join
'.'
if
model
...
...
Please
register
or
sign in
to post a comment