Comment #5 on issue 31 by sroussey: Implement predicates for selecting  
sections
http://code.google.com/p/json-template/issues/detail?id=31

To me this mean that it will always run:

{.section foo true?}
stuff
{.end}

But a section won't show if there is no foo, correct?

To me, this seems like a better translation:

{.section foo}
stuff
{.end}

is the same as

{.section foo foo|true?}
stuff
{.end}

depending on the name of the function. Could be isTrue

{.section foo foo|isTrue?}
stuff
{.end}

So we can do this (where stuff in [] denotes what is optional):

{.section scope[|formatter][ test[|predicate]?]}
stuff
{.end}

Does that look right?

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