Yes, I know that this has been asked before. But most of the questions were two years ago, and there's got to be a better answer today.
I need a template language for rendering HTML. Requirements:
Must be callable from Java.
Must not be Freemarker, Velocity, or StringTemplate. We've been using Freemarker for a year, and it's too slow. It consumes 50% of our CPU cycles under load. Velocity is worse than Freemarker, and StringTemplate has got its own issues.
It must consume JSON, or its Java equivalent, i.e. Maps, Lists, and primitives.
I'm starting to get Node.js envy. There has been a ton of template activity for Javascript in the last year, but little for Java (that I know of).
The ideal language would look like Liquid, which exists only for Rails.
Jade exists for Java, but I don't want all the HTML reformatting that comes with it.
Update
I eventually settled on Handlebars, which is also available for Java. Both work great.