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, use the fluent API methods: withAutoHeadMerging, withExperimentalTitleTokens, and withSortingStrategy.
| Type | Name and description |
|---|---|
static String |
DIALECT_NAME |
static int |
DIALECT_PRECEDENCE |
static String |
DIALECT_PREFIX |
| Constructor and description |
|---|
LayoutDialect()Constructor, create a new layout dialect with the default options. |
LayoutDialect(SortingStrategy sortingStrategy)Constructor, configure the layout dialect. |
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 |
equals, getClass, getDialectProcessorPrecedence, getName, getPrefix, getProcessors, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor, create a new layout dialect with the default options.
Constructor, configure the layout dialect.
with, to
configure the layout dialect instead.Constructor, configure the layout dialect.
with, to
configure the layout dialect instead.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