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

OK, I see. So no formatter, just predicates. But I'd like to see them  
optionally
based on different parts of the JSON.

JSON={
  advancedSetting:true,
  foo: ...
  bar: ...
  ...
}

{.section foo advancedSetting|true?}
<b>hello</b>
{.or}
<i>bye</i>
{.end}

{.section jj}
stuff
{.end}

{.section foo advancedSetting|true?}
<b>hello</b>
{.or}
<i>bye</i>
{.end}


Thus why I thought:
{.section foo}
was shorthand for:
{.section foo foo|true?}


I need something more flexible like this, so I'm likely going to have to  
fork. :(

But any other good changes I make I'll port over. I was hoping not to get  
into the
implementation so much, but I guess that will give me the opportunity to  
have better
compilation (like the php version creating compiled php files like smarty).

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