Trimou is a Mustache implementation written in Java. Helpers API inspired by Handlebars.js is also supported. The goal is to provide a simple to use and easy to extend templating engine for any Java SE or Java EE application.
There are some ready-to-use extensions which provide integration with CDI, Servlets, PrettyTime, HtmlCompressor, google-gson, Spring MVC and Dropwizard.
See also the project site: http://trimou.org
Don't forget to check the example web application: https://github.com/trimou/trimou/tree/master/examples/ping
Simply run:
$ mvn clean install