views:

169

answers:

3

Is there any template engine (open source) that is like Smart? I want to make it easy for users to design their templates in HTML and then use it, which the smarty-template really is good for. JTPL is close to my example of what I'm looking for, but I want the "foreach" part in the template to be able to let users customize the result pages as well. The more lightweight the better!

+2  A: 

Velocity is a nice, lightweight templating engine.

danben
+1  A: 

StringTemplate is a popular lightweight Java template engine. Also, check out these instructions on generating web pages with StringTemplate.

Fabian Steeg
+2  A: 

Freemarker is good too. Quite similar to Velocity, add some nice features.

christian