public class ThymeleafTemplateEngine
extends spark.TemplateEngine
| Constructor and Description |
|---|
ThymeleafTemplateEngine()
Constructs a default thymeleaf template engine.
|
ThymeleafTemplateEngine(org.thymeleaf.templateresolver.ITemplateResolver templateResolver)
Constructs a thymeleaf template engine with a proprietary initialize
|
ThymeleafTemplateEngine(String prefix,
String suffix)
Constructs a thymeleaf template engine with specified prefix and suffix
|
| Modifier and Type | Method and Description |
|---|---|
String |
render(spark.ModelAndView modelAndView) |
String |
render(spark.ModelAndView modelAndView,
Locale locale)
Process the specified template (usually the template name).
|
public ThymeleafTemplateEngine()
public ThymeleafTemplateEngine(String prefix, String suffix)
prefix - the prefix (template directory in resource path)suffix - the suffix (e.g. .html)public ThymeleafTemplateEngine(org.thymeleaf.templateresolver.ITemplateResolver templateResolver)
templateResolver - the template resolver.public String render(spark.ModelAndView modelAndView)
render in class spark.TemplateEnginepublic String render(spark.ModelAndView modelAndView, Locale locale)
modelAndView - model and viewlocale - A Locale object represents a specific geographical, political, or cultural regionCopyright © 2017. All Rights Reserved.