Java - Templates



Template engines, like Velocity or Freemarker - moves design out of Java, requires a lot of map operations, it would be quite good, but the Velocity syntax and loop/if abilities aren't as readable as for example those from Smarty. See this thread on StackOverflow

Try Rythm template engine, which is built as a high performance Java template engine with Razor like clean syntax.

Groovy is a JVM language. It can be mixed freely with Java, and in addition to a bunch of other really nice language features. It has heredocs.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License