All you need is template includes, right? As a more_formatter thing,
you should be able to do it, correct?

On Sep 22, 8:28 pm, Andy Chu <[email protected]> wrote:
> On Tue, Sep 22, 2009 at 3:31 PM, Steven Roussey <[email protected]> wrote:
>
> > I have put zero time into thinking about it, but why must the depth of
> > the tree must be known at "compile time"?
>
> What I'm saying is that it's currently impossible to format structures
> like this with a single template:
>
> { name: "foo"
>   children: [{name: "child1"}]}
>
> { name: "foo"
>   children: [{name: "child1",
>                  children: [{name: "grandchild"}]}]}
>
> But this is mostly a tangent to what you were asking about.  I think
> compilation would be cool.  But it doesn't require using JSON Template
> itself to implement the compilation... it can obviously just be done
> in Python/JS/whatever.
>
> It's just that code generation is a use case I would like to support
> more, and it almost always requires a single template formatting trees
> of various depths (the parse tree).
>
> 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