@Component public class ThymeleafSpringTemplateEngineImpl extends Object implements ITemplateEngine, org.springframework.beans.factory.InitializingBean
The default 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
The template language identifier for this engine.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public String getTemplateLanguage()
Return the template language identifier for this template engine, like thymeleaf, velocity, etc.
getTemplateLanguage
in interface ITemplateEngine
public String renderTemplate(TemplateInstanceBean template)
Render the indicated template
without variables to generate output.
renderTemplate
in interface IEngineRender
template
- The template definitionCopyright © 2021 Albirar. All rights reserved.