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