public interface FreemarkerProcessingService
| Modifier and Type | Interface and Description |
|---|---|
static class |
FreemarkerProcessingService.TemplateParsingException
Template parser detected a problem.
|
static class |
FreemarkerProcessingService.TemplateProcessingException
Indicates a failure to render the given template with the given data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTemplateAvailable(String templateName,
javax.servlet.http.HttpServletRequest req)
Is there an accessible template by this name?
The question is asked in the context of the current request, which
determines the theme directory.
|
String |
renderTemplate(String templateName,
Map<String,Object> map,
javax.servlet.http.HttpServletRequest req)
Process a Freemarker template with a data map, producing string of HTML.
|
boolean isTemplateAvailable(String templateName, javax.servlet.http.HttpServletRequest req) throws FreemarkerProcessingService.TemplateProcessingException
FreemarkerProcessingService.TemplateProcessingException - If the template is found, but cannot be parsed.String renderTemplate(String templateName, Map<String,Object> map, javax.servlet.http.HttpServletRequest req) throws FreemarkerProcessingService.TemplateProcessingException
Copyright © 2021. All rights reserved.