Comment #10 on issue 34 by tim.schaub: Repeated section should iterate over  
dictionaries and have special variables $name and $value
http://code.google.com/p/json-template/issues/detail?id=34

Also (apologies for pushing), consider this:

If you allow the template designer to choose variable names when iterating,  
they
actually don't need to even touch the (somewhat obscure) cursor or remember  
any
special $words.

Data:

     {
         "obj": {"key1": "value1", "key2": "value2"},
         "list": ["one", "two"]
     }

Template:

     Object members:
     {.repeated key obj}
         {key}: {obj.key}
     {.end}

     Array elements:
     {.repeated index list}
         {index}: {list.index}
     {.end}

Can you really hope to be more readable using @ and $?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JSON 
Template" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/json-template?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to