The simplest thing I've come up with so far is just to make the
predicate an optional argument to sections ending with ?:
{.section num plural?}
...
{.or}
...
{.end}
{.repeated section methods}
{.section @ public?} # could also just be {.section public?}
{name} {args}
{.end}
{.end}
Repeated sections should probably also get predicates, since I think
it will fall out for free.
This syntax will be compatible with two possible future extensions:
1) Filters on sections
2) More than one predicate per section, e.g. switch/case style
Andy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---