public final class TemplateUtil extends Object
Modifier and Type | Method and Description |
---|---|
static freemarker.template.Configuration |
getTemplateConfig()
Give a basic templateConfiguration
|
static void |
processTemplate(File template,
File outputFile,
freemarker.template.Configuration templateConfig,
Map<String,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(File template, File outputFile, freemarker.template.Configuration templateConfig, Map<String,String> data) throws 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 templateIOException
- 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.