I know there is google-closure-template but it is working with guice 2.0 and my current project runs under guice 3.0 and both together just create wierd errors and I tried using them but failed for about 2 weeks now…
So is there anything apart from google-closure?
You can take a look at Mustache.
Also Histone seems to be for both
BTW: the same topic is here
I realize this is an old question, but have you considered firing up a
javax.script.ScriptEngine and running the same JS templating system in Java as well? That way you can choose the template system you actually want rather than compromising based on what languages implement it. I doubt that embedded JS in Java (Rhino/Nashorn) will perform as a well as a native Java implementation, but depending on your application that might not matter.