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
2b4d245f
authored
2012-10-18 19:09:38 -0700
by
Contra
Committed by
Michael Richards
2012-10-18 19:09:38 -0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add support for top-level keypaths.
1 parent
1c10de2b
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 @
2b4d245
...
...
@@ -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