public static class ThymeleafModule.Config extends Object
ThymeleafModule
.Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
int |
getTemplatesCacheSize()
The size of the templates cache.
|
String |
getTemplatesMode()
The mode for templates.
|
String |
getTemplatesPrefix()
The prefix for templates.
|
String |
getTemplatesSuffix()
The suffix for templates.
|
ThymeleafModule.Config |
templatesCacheSize(int templatesCacheSize)
Sets the size of the templates cache.
|
ThymeleafModule.Config |
templatesMode(String templatesMode)
Sets the mode for templates.
|
ThymeleafModule.Config |
templatesPrefix(String templatesPrefix)
Sets the prefix for templates.
|
ThymeleafModule.Config |
templateSuffix(String templatesSuffix)
Sets the suffix for templates.
|
public int getTemplatesCacheSize()
0
by default (disabled).
public String getTemplatesMode()
by default.
public String getTemplatesPrefix()
by default.
public String getTemplatesSuffix()
by default.
public ThymeleafModule.Config templatesCacheSize(int templatesCacheSize)
templatesCacheSize
- the size of the templates cachepublic ThymeleafModule.Config templatesMode(String templatesMode)
templatesMode
- the mode for templatespublic ThymeleafModule.Config templatesPrefix(String templatesPrefix)
templatesPrefix
- the prefix for templatespublic ThymeleafModule.Config templateSuffix(String templatesSuffix)
templatesSuffix
- the suffix for templates