public class FreemarkerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATES_ROOT |
| Constructor and Description |
|---|
FreemarkerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static freemarker.cache.TemplateLoader |
getTemplateLoader(String webContentsDirectory,
String templatesRoot,
Class<?> fallbackResourceLoaderClass) |
static void |
processTemplate(freemarker.template.Configuration cfg,
String view,
Map<String,String> datamodel,
Writer out) |
public static final String TEMPLATES_ROOT
public static freemarker.cache.TemplateLoader getTemplateLoader(String webContentsDirectory, String templatesRoot, Class<?> fallbackResourceLoaderClass)
public static void processTemplate(freemarker.template.Configuration cfg,
String view,
Map<String,String> datamodel,
Writer out)
throws IOException
IOExceptionCopyright © 2018 Unity. All rights reserved.