I watched another night on James Strachan's label on ScalaExchange about Scalate.
This is a template engine containing a set of template templates. I looked at it to use the Mustache part, bu has a template system in it called Scuery, which is also based on CSS / JQuery, for example selectors.
This is actually a good presentation that shows the implementation of a wide range of template solutions. Scaml + Markdown looks very good.
Strictly speaking, this is scala, but AFAICT you can just use the API with Java. Of course, some template languages have a built-in DSL scala.
source share