public final class TemplateUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static freemarker.template.Configuration |
getTemplateConfig()
Give a basic templateConfiguration
|
static void |
processTemplate(java.io.File template,
java.io.File outputFile,
freemarker.template.Configuration templateConfig,
java.util.Map<java.lang.String,java.lang.String> data)
Process a given freemarker template and put its result in a new folder.
|
public static freemarker.template.Configuration getTemplateConfig()
public static void processTemplate(java.io.File template,
java.io.File outputFile,
freemarker.template.Configuration templateConfig,
java.util.Map<java.lang.String,java.lang.String> data)
throws java.io.IOException,
freemarker.template.TemplateException
template - file that contains the freemarker template to processoutputFile - File created from templatetemplateConfig - Configuration of the templatedata - to inject in the templatejava.io.IOException - if an I/O exception occurs during writing to the writerfreemarker.template.TemplateException - if an exception occurs during template processingCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.