Comment #3 on issue 31 by [email protected]: IF statement?
http://code.google.com/p/json-template/issues/detail?id=31
No it will be shorthand for
{.section foo true?}
stuff
{.end}
The default predicate denoted "true?" is like "bool()" in Python -- take
any object
and convert it to True/False.
When I said "filters" there I meant "formatters", which come after the |.
Formatters
transform an arbitary value to a string. Predicates convert an arbitrary
value to a
boolean.
I don't think it should be too hard to implement. It's just adding the
predicate to
the parsing, looking it up at runtime, and deciding which section to expand.
--
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
-~----------~----~----~----~------~----~------~--~---