Java template Framework which has placeholder syntax as {{firstName}}

663 views Asked by At

I've a template which has the placeholder syntax in {{firstName}} format. Which templating framework supports this kind of syntax?

I've seen Apache Velocity uses ${firstName} format. If there is anyway to change the syntax in velocity to {{firstName}} instead of ${}, that will also help me.

1

There are 1 answers

0
spark-java On

Both handlebars and mustache have Java implementations, and they use the double curly brace syntax.

Velocity does not support that syntax, and you can't make it, but converting between different template languages is often very easy. Search and replace can get you a long way.