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