I’m looking for a templating language that I can use to generate html on both the server, using java, and in a web browser using javascript. I want to use the same template in both situations. It needs to support i18n and if it can tie into Spring that would be awesome. I’ve seen mustache but are there any others available?
Share
You could go with {{mustache}}. It’s available in pretty much everything under the sun. It’s also pretty popular.
Here’s a great example of usage (taken from the mustache site)…
We have many items that contain a name, price and many features that contain a description.