Package ratpack.thymeleaf
Class ThymeleafModule.Config
- java.lang.Object
-
- ratpack.thymeleaf.ThymeleafModule.Config
-
- Enclosing class:
- ThymeleafModule
public static class ThymeleafModule.Config extends java.lang.Object
The configuration object forThymeleafModule
.
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getTemplatesCacheSize
public int getTemplatesCacheSize()
The size of the templates cache.0
by default (disabled).- Returns:
- the size of the templates cache.
-
getTemplatesMode
public java.lang.String getTemplatesMode()
The mode for templates."XHTML" by default.
- Returns:
- the mode for templates.
-
getTemplatesPrefix
public java.lang.String getTemplatesPrefix()
The prefix for templates."thymeleaf" by default.
- Returns:
- the prefix for templates.
-
getTemplatesSuffix
public java.lang.String getTemplatesSuffix()
The suffix for templates.".html" by default.
- Returns:
- the suffix for templates.
-
templatesCacheSize
public ThymeleafModule.Config templatesCacheSize(int templatesCacheSize)
Sets the size of the templates cache.- Parameters:
templatesCacheSize
- the size of the templates cache- Returns:
- this
-
templatesMode
public ThymeleafModule.Config templatesMode(java.lang.String templatesMode)
Sets the mode for templates.- Parameters:
templatesMode
- the mode for templates- Returns:
- this
-
templatesPrefix
public ThymeleafModule.Config templatesPrefix(java.lang.String templatesPrefix)
Sets the prefix for templates.- Parameters:
templatesPrefix
- the prefix for templates- Returns:
- this
-
templateSuffix
public ThymeleafModule.Config templateSuffix(java.lang.String templatesSuffix)
Sets the suffix for templates.- Parameters:
templatesSuffix
- the suffix for templates- Returns:
- this
-
-