public class TemplateUtils extends Object
Constructor and Description |
---|
TemplateUtils() |
Modifier and Type | Method and Description |
---|---|
static freemarker.template.Configuration |
getConfig()
Singleton FreeMaker configuration
|
static void |
replace(String name,
InputStream input,
Map<String,Object> model,
OutputStream out)
Quick replace utility function
|
static String |
replace(String name,
String template,
Map<String,Object> model)
Quick replace utility function
|
static boolean |
templateExists(String name)
Check for template existence
|
public static freemarker.template.Configuration getConfig()
public static boolean templateExists(String name)
public static String replace(String name, String template, Map<String,Object> model) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
public static void replace(String name, InputStream input, Map<String,Object> model, OutputStream out) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.