Specifies the name of the decorator template to apply to a content template.
The mechanism for resolving decorator templates is the same as that used by Thymeleaf to resolve pages in the th:fragment and th:include processors.
| Type | Name and description |
|---|---|
static String |
PROCESSOR_NAME_DECORATOR |
int |
precedence |
SortingStrategy |
sortingStrategy |
| Constructor and description |
|---|
DecoratorProcessor
(SortingStrategy sortingStrategy)Constructor, configure this processor to work on the 'decorator' attribute and to use the given sorting strategy. |
| Type | Name and description |
|---|---|
protected ProcessorResult |
processAttribute(Arguments arguments, Element element, String attributeName)Locates the decorator page specified by the layout attribute and applies it to the current page being processed. |
| Methods inherited from class | Name |
|---|---|
class AbstractAttrProcessor |
getMatcher, compareTo, compareTo, process, getPrecedence, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class AbstractProcessor |
compareTo, compareTo, process, getPrecedence, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, getMatcher |
Constructor, configure this processor to work on the 'decorator' attribute and to use the given sorting strategy.
Locates the decorator page specified by the layout attribute and applies it to the current page being processed.
Groovy Documentation