Skip to content

Commit

Permalink
Update the readme with the new collection syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Apr 14, 2011
1 parent 51f9028 commit ea780c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 8 additions & 3 deletions README.md
Expand Up @@ -48,12 +48,17 @@ or specify an alias for the object:
object @user => :person
# => { "person" : { ... } }

or pass a collection:
or pass a collection of objects:

collection @users
# alias for object @users
# => [ { "user" : { ... } } ]

and this will be used as the default data object for the rendering.
or even specify a root node label for the collection:

collection @users => :people
# => { "people" : [ { "person" : { ... } } ] }

and this will be used as the default data for the rendering.

### Attributes ###

Expand Down
6 changes: 0 additions & 6 deletions TODO
@@ -1,7 +1 @@
= TODO

- Add support for @users => :people creates { "people" : [{ ... }] }
- Test the code, child and glue options
- Add support for child collection with "root" for each
- Child should support collections of children
- Child should support symbol associations inside object

0 comments on commit ea780c4

Please sign in to comment.