be.personify.iam.frontend.wicket.util.TemplateEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of personify-frontend Show documentation
Show all versions of personify-frontend Show documentation
frontend library for different usages
package be.personify.iam.frontend.wicket.util;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateExceptionHandler;
public class TemplateEngine {
private static final String TEMPLATE_NAME = "templateName";
public static Configuration cfg;
static {
cfg = new Configuration(Configuration.VERSION_2_3_23);
//cfg.setDirectoryForTemplateLoading(generationInfo.templateDir);
cfg.setDefaultEncoding("UTF-8");
cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
cfg.setLogTemplateExceptions(false);
}
public static String process( String content, Map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy