Search code examples
javatemplating-engine

Business user templating language for Java


I'm looking for a secure templating language for Java that business users can use.

When I say secure I mean you can't enter in something that will take down the server or hog a thread.

Ideally I would like looping and conditions but for looping I don't want them enter an infinite loop or something like 1 to 3 billion counter.

Know of any libraries (I'm hoping to avoid having modify any of templating evaluators like Velocity)


Solution

  • I ended up picking Mustache. I chose the Java implementation mainly because Scalate seems to have many, many dependencies.