public class DecoratorProcessor extends AbstractContentProcessor
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROCESSOR_NAME_DECORATOR |
| Constructor and Description |
|---|
DecoratorProcessor()
Constructor, sets this processor to work on the 'decorator' attribute.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.thymeleaf.processor.ProcessorResult |
processAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
java.lang.String attributeName)
Locates the decorator page specified by the layout attribute and applies
it to the current page being processed.
|
findFragments, getPrecedencedoProcess, getMatcherpublic static final java.lang.String PROCESSOR_NAME_DECORATOR
public DecoratorProcessor()
protected org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
java.lang.String attributeName)
processAttribute in class org.thymeleaf.processor.attr.AbstractAttrProcessorarguments - element - attributeName -