I've been playing with Mustache, as it works in Ruby and JavaScript (and something like 13 other languages.) Have to be a little careful to ensure that you only pass objects to the template, of course, so you don't bleed any language-specific stuff into your template.
But what I've tinkered with is very exciting.
Out of interest, what solutions are there for this currently?