I have put zero time into thinking about it, but why must the depth of the tree must be known at "compile time"?
On Sep 22, 9:44 am, Andy Chu <[email protected]> wrote: > On Tue, Sep 22, 2009 at 8:51 AM, Steven Roussey <[email protected]> wrote: > > > Are there plans on doing true compiling? For example, on the PHP side, > > creating a php file that only runs a specific template? And the same > > for JS -- creating a JS string to be evaled -- or saved back to the > > server? > > I definitely designed the template language to be easily compilable, > but there are no 'plans' right now since I'm not running a high volume > website where it matters : ) Some others have asked about it but I > don't think anyone's working on i. I think it would be cool, probably > mostly for JS, since you may also save code size and thus bytes to > transfer. > > The other thing that I think is missing is that JSON Template should > be able to format its own parse tree. That is, you should be able to > generate the code with a JSON Template. The reason it can't do this > now is because the depth of the tree must be known at "compile time". > You can't format trees of varying runtime depth with JSON Template. > Not sure if you can with other template languages. > > 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 -~----------~----~----~----~------~----~------~--~---
