Comment #1 on issue 31 by [email protected]: IF statement?
http://code.google.com/p/json-template/issues/detail?id=31

Answered on the group, see discussions about "predicates":

http://groups.google.com/group/json-template/browse_thread/thread/f354e3c2108353b7#

http://groups.google.com/group/json-template/browse_thread/thread/1ef3327f6f9b5436#

The reason it's done this way is that I don't want to add any operators to  
the
language.  Once you add ==, then you need !=, >, >=, list membership,  
dictionary
membership, etc.  So the solution is to just define predicates in the host  
language
and refer to them in the template.

Comments welcome.  I haven't gone around to implementing it yet.


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