class LayoutDialect extends AbstractProcessorDialect
A dialect for Thymeleaf that lets you build layouts and reusable templates in order to improve code reuse.
To configure the layout dialect, you have 2 options:
LayoutDialect(SortingStrategy, boolean)Note that the fluent API is currently the only way to enable the experimentatlTitleTokens
setting. With the number of options growing, the constructor might be
deprecated in favour of the fluent API methods.
| Type | Name and description |
|---|---|
static String |
DIALECT_NAME |
static int |
DIALECT_PRECEDENCE |
static String |
DIALECT_PREFIX |
| Constructor and description |
|---|
LayoutDialect(SortingStrategy sortingStrategy, boolean autoHeadMerging)Constructor, configure the layout dialect. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Set<IProcessor> |
getProcessors(String dialectPrefix)Returns the layout dialect's processors. |
|
LayoutDialect |
withAutoHeadMerging(boolean autoHeadMerging)Configure this instance of the layout dialect with the given autoHeadMerging
value. |
|
LayoutDialect |
withExperimentalTitleTokens(boolean experimentalTitleTokens)Configure this instance of the layout dialect with the given experimentalTitleTokens
value. |
|
LayoutDialect |
withSortingStrategy(SortingStrategy sortingStrategy)Configure this instance of the layout dialect with the given sortingStrategy. |
| Methods inherited from class | Name |
|---|---|
class AbstractProcessorDialect |
getPrefix, getDialectProcessorPrecedence, getName, equals, toString, hashCode, getClass, notify, notifyAll, wait, wait, wait, getProcessors |
Constructor, configure the layout dialect.
autoHeadMerging
- Experimental option, set to false to skip the automatic merging
of an HTML <head> section.Returns the layout dialect's processors.
Configure this instance of the layout dialect with the given autoHeadMerging
value.
Configure this instance of the layout dialect with the given experimentalTitleTokens
value.
Configure this instance of the layout dialect with the given sortingStrategy.
Groovy Documentation