org.openxava.util
Class SimpleTemplater
java.lang.Object
org.openxava.util.SimpleTemplater
public class SimpleTemplater
- extends java.lang.Object
To process simple HTML templates.
-- Usage --
SimpleTemplater.getInstance().buildOutputUsingStringTemplate(template, parameters);
Replaces ${parameter_name} in the template by its value found in the (Map)parameters.
-- Syntax --
Simple blocks can be processed.
Blocks are surrounded by and
$$for(parameter_name) will loop over the items of parameter_name of type Collection