public class ThymeleafTemplateEngine extends AbstractTemplateEngine
A template engine which renders pages using Thymeleaf.
This template engine is not recommended for large sites because the whole model is loaded into memory due to Thymeleaf internal limitations.
The default rendering mode is "HTML", but it is possible to use another mode for each document type, by adding a key in the configuration, for example:
template.feed.thymeleaf.mode=XML
config, db, extractors| Constructor and Description |
|---|
ThymeleafTemplateEngine(org.apache.commons.configuration.CompositeConfiguration config,
ContentStore db,
java.io.File destination,
java.io.File templatesPath)
Deprecated.
|
ThymeleafTemplateEngine(JBakeConfiguration config,
ContentStore db) |
| Modifier and Type | Method and Description |
|---|---|
void |
renderDocument(java.util.Map<java.lang.String,java.lang.Object> model,
java.lang.String templateName,
java.io.Writer writer) |
@Deprecated
public ThymeleafTemplateEngine(org.apache.commons.configuration.CompositeConfiguration config,
ContentStore db,
java.io.File destination,
java.io.File templatesPath)
ThymeleafTemplateEngine(JBakeConfiguration, ContentStore) insteadpublic ThymeleafTemplateEngine(JBakeConfiguration config, ContentStore db)
public void renderDocument(java.util.Map<java.lang.String,java.lang.Object> model,
java.lang.String templateName,
java.io.Writer writer)
throws RenderingException
renderDocument in class AbstractTemplateEngineRenderingException