From ea780c4591c588e58203b97e77bf92b917fa6e96 Mon Sep 17 00:00:00 2001 From: Nathan Esquenazi Date: Thu, 14 Apr 2011 16:56:40 -0700 Subject: [PATCH] Update the readme with the new collection syntax --- README.md | 11 ++++++++--- TODO | 6 ------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e34b4658..f3a6c686 100644 --- a/README.md +++ b/README.md @@ -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 ### diff --git a/TODO b/TODO index 092ceb38..c7da3924 100644 --- a/TODO +++ b/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 \ No newline at end of file