* Aryeh Gregor Simetrical+wikilist@gmail.com [Fri, 3 Jul 2009 15:15:48 -0400]:
Hmm. Smarty looks interesting, at a quick glance. I suspect it's not designed to be secure against DoS, so it would need some kind of sandboxing. Hopefully less than some of the other solutions we're contemplating, though! I'd think it might serve okay, if we wrote enough custom functions to replace the existing ParserFunctions. I'm not sure.
http://en.wikipedia.org/wiki/Template_engine_%28web%29#Comparison
There are some template engines implemented in multiple languages.
This one (from the list above) combines DOM-like manipulations via PHP and Javascript: http://code.google.com/p/querytemplates/ Something more closer to XSLT, yet simplier and has loops. Dmitriy