Similar to Thymeleaf's th:include, but allows the passing of entire element fragments to the included template. Useful if you have some HTML that you want to reuse, but whose contents are too complex to determine or construct with context variables alone.
| Type | Name and description |
|---|---|
static String |
PROCESSOR_NAME_INCLUDE |
int |
precedence |
| Constructor and description |
|---|
IncludeProcessor
()Constructor, sets this processor to work on the 'include' attribute. |
| Type | Name and description |
|---|---|
protected ProcessorResult |
processAttribute(Arguments arguments, Element element, String attributeName)Locates the specified page and includes it into the current template. |
| 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, sets this processor to work on the 'include' attribute.
Locates the specified page and includes it into the current template.
Groovy Documentation