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) |
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.TemplateEngine
Copyright © 2017. All Rights Reserved.