A simple API for retrieving (immutable template) models using Thymeleaf's template manager.
| Constructor and description |
|---|
TemplateModelFinder
(ITemplateContext context)Constructor, set the template context we're working in. |
| Type | Name and description |
|---|---|
TemplateModel |
findFragment(FragmentExpression fragmentExpression)Return the model specified by the given fragment expression. |
TemplateModel |
findFragment(String templateName, String fragmentName = null, String dialectPrefix = null)Return the model specified by the template and fragment name parameters. |
TemplateModel |
findTemplate(FragmentExpression fragmentExpression)Return a model for the template specified by the given fragment expression. |
TemplateModel |
findTemplate(String templateName)Return a model for the template specified by the given template name. |
Constructor, set the template context we're working in.
Return the model specified by the given fragment expression.
Return the model specified by the template and fragment name parameters.
Return a model for the template specified by the given fragment expression.
Return a model for the template specified by the given template name.