[Templates] Can there be two?

Simon Wistow simon@thegestalt.org
Fri, 5 May 2006 17:06:31 +0100


On Fri, May 05, 2006 at 09:44:49AM -0600, Paul Seamons said:
> Thinking about it.  It would also be possible to JSON dump the optree and make 
> the execute_tree be written entirely in Javascript.

So, theoretically you could create a Template->JSON handler for Apache 
triggered on, say, .ttj files.

Javascript in a wbe page could then do an XMLHttpRequest and fetch 
TT(-esque) templates as JSON.