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

Right now sections and repeated sections require a name:

{.repeated section foo}
{.section bar}

I don't think we can get rid of "section" in repeated without breaking  
compatibility,
but assuming you can, what's the syntax?

{.repeated <subdict> <name> <value>}  # for objects
{.repeated <subdict> <index>}  # for lists

The <name> <index> <value> can't be first because they're optional.  If I  
just want
to iterate over a list with no index, I want to write:

{.repeated posts}

Not

{.repeated index posts}

And then ignore 'index'.  A lot of your proposal seems to break  
compatiblity unless
I'm missing something.



--
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