+json-template

> If you want access to given field you might use {.section
> num}{.singular?}one{.end}{.end}.  But it's not required.
>
> {.if} is closed by {.end} now.
>
> The JS (and PHP I think) versions lag behind Python in one respect --
> no "ProgramBuilder" abstraction.  The _Compile function of JS is
> getting unfortunately long... I will probably clean that up at some
> point.

A couple other things beyond the recent bugs I filed:

It might be useful to provide a default argument parser in a registry.  Like:

class PrefixRegistry(object):
  """This registers functions which are identified by their prefix.
The non-prefix members are parsed as arguments."""

  def Add(self, prefix):
     pass


Another thing, I wonder if I should change the style of public methods
on JS.  Perhaps context.Lookup() should become context.lookup().

I already did that for the public methods expand() and such.  So yeah
I think I'll do this.

Andy

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