I started playing around with json-template and am generally impressed
by how simple it is. The one thing I'm stuck on is how/whether to add
new language constructs or formatters. I'd like to write as little non-
template code as possibly, but when porting over some old code there
is a bunch of things I need to do that aren't natively supported.

As an example, I'd like to have branching sections based on whether a
list contains one element or several. I guess I could write this as a
formatter, but falling back to native code seems a bit hacky. Or maybe
I'm should try to change up the underlying code. What's the
recommended approach?

(basic idea)
{.repeated section pictures one}
 (some stuff for single case)
{.or repeated section pictures}
 (some stuff for plural case)
{.end}
--~--~---------~--~----~------------~-------~--~----~
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