Comment #6 on issue 31 by [email protected]: Implement predicates for
selecting sections
http://code.google.com/p/json-template/issues/detail?id=31
There are only 2 concepts: formatters and predicates. You have 3 things
there --
what is "test"?
I haven't committed to doing formatters on sections -- only predicates.
But if we
were to add it, then the syntax would be:
{.section foo plural?|html}
<b>hello</b>
{.or}
<i>bye</i>
{.end}
That formats the section as HTML no matter what -- showing the first clause
if foo is
plural, otherwise showing the second clause.
There was a long discussion about the merits of combining these and the
syntax on the
groups thread I pointed you to. In sum, the formatters on sections seem
nice, but
they complicate some aspects of implementation. Maybe at some point though.
--
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
-~----------~----~----~----~------~----~------~--~---