@MetaInfServices(value=ro.pippo.core.TemplateEngine.class) public class FreemarkerTemplateEngine extends Object implements TemplateEngine
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SUFFIX |
static String |
FTL |
BAD_REQUEST_400, CONFLICT_409, DEFAULT_PATH_PREFIX, FORBIDDEN_403, GONE_410, INTERNAL_ERROR_500, METHOD_NOT_ALLOWED_405, NOT_FOUND_404, NOT_IMPLEMENTED_501, OVERLOADED_502, PAYMENT_REQUIRED_402, SERVICE_UNAVAILABLE_503, UNAUTHORIZED_401
Constructor and Description |
---|
FreemarkerTemplateEngine() |
Modifier and Type | Method and Description |
---|---|
void |
init(Application application) |
protected void |
init(Application application,
freemarker.template.Configuration configuration) |
void |
renderResource(String templateName,
Map<String,Object> model,
Writer writer) |
void |
renderString(String templateContent,
Map<String,Object> model,
Writer writer) |
public static final String FTL
public static final String FILE_SUFFIX
public void init(Application application)
init
in interface TemplateEngine
public void renderString(String templateContent, Map<String,Object> model, Writer writer)
renderString
in interface TemplateEngine
public void renderResource(String templateName, Map<String,Object> model, Writer writer)
renderResource
in interface TemplateEngine
protected void init(Application application, freemarker.template.Configuration configuration)
Copyright © 2016. All Rights Reserved.