Is there a use case for this? I think it ought to start from 1.

{.repeated section foo}
   {$index} -- {item}<br>
{.end}

I doubt people want it to result in:

 0 -- John
 1 -- Steve
 2 -- Cathy

Where this makes more sense:

 1 -- John
 2 -- Steve
 3 -- Cathy

Also, should be have a {.header} and {.footer} for repeated sections?
I think the this looks better than the option below it:

{.repeated section foo}
  {.header}
   I am header
  {.end}
   {$index} -- {item}
  {.footer}
   I am footer
  {.end}
{.end}

{.repeated section foo}
  {.if $index is 1}
   I am header
  {.end}
   {$index} -- {item}
  {.if $index is $count}
   I am footer
  {.end}
{.end}

Though I can live with either... ;)
--~--~---------~--~----~------------~-------~--~----~
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