Ingy has produced a javascript-based templating engine that can actually use templates intended for the Perl-based Template Toolkit. He talks a little bit about it on his blog. The scary part is that this may have just made it much more reasonable for me to support both an Ajax-based and a "conventional" implementation of the AnteSpam front-end; no more having to maintain two ways of presenting data, etc.