@Component public class ThymeleafSpringTemplateEngineImpl extends Object implements ITemplateEngine, org.springframework.beans.factory.InitializingBean
ITemplateEngine implementation backed with SpringTemplateEngine, that supports thymeleaf
markup language with spring MVC enhancements.| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATE_LANGUAGE
The template language identifier for this engine.
|
| Constructor and Description |
|---|
ThymeleafSpringTemplateEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getTemplateLanguage()
Return the template language identifier for this template engine, like _thymeleaf_, _velocity_, etc.
|
String |
renderTemplate(TemplateInstanceBean template)
Render the indicated
template without variables to generate output. |
public static final String TEMPLATE_LANGUAGE
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getTemplateLanguage()
getTemplateLanguage in interface ITemplateEnginepublic String renderTemplate(TemplateInstanceBean template)
template without variables to generate output.renderTemplate in interface IEngineRendertemplate - The template definitionCopyright © 2021 Albirar. All rights reserved.