Rythm a java template engine now released with an new feature called String interpolation mode which allows you do something like:
String result = Rythm.render("Hello @who!", "world");
The above case shows you can pass argument to template by position. Rythm also allows you to pass arguments by name:
Map args = new HashMap();
args.put("title", "Mr.");
args.put("name", "John");
String result = Rythm.render("Hello @title @name", args);
Links:
- Check the full featured demonstration
- read a brief introduction to Rythm
- download the latest package or
- fork it