public class ThymeleafTemplateEngine extends AbstractTemplateEngine
A template engine which renders pages using Thymeleaf.
This template engine is not recommanded for large sites because the whole model is loaded into memory due to Thymeleaf internal limitations.
The default rendering mode is "HTML5", 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, destination, templatesPath| Constructor and Description |
|---|
ThymeleafTemplateEngine(org.apache.commons.configuration.CompositeConfiguration config,
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
File destination,
File templatesPath) |
public void renderDocument(Map<String,Object> model, String templateName, Writer writer) throws RenderingException
renderDocument in class AbstractTemplateEngineRenderingExceptionCopyright © 2014. All Rights Reserved.