public class ViewUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Logger |
log
Used for logging.
|
Constructor and Description |
---|
ViewUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
outputTemplate(java.lang.String template,
java.lang.Object map,
java.io.PrintWriter out)
Outputs the contents of a FreeMarker template.
|
static void |
outputTemplate(java.lang.String template,
java.io.PrintWriter out)
Outputs the contents of a FreeMarker template.
|
public static void outputTemplate(java.lang.String template, java.io.PrintWriter out)
template
- The name of the template to output, excluding the file extension.out
- The PrintWriter
to send the output to.public static void outputTemplate(java.lang.String template, java.lang.Object map, java.io.PrintWriter out)
template
- The name of the template to output, excluding the file extension.map
- The map containing the data to merge with the template.out
- The PrintWriter
to send the output to.