@Deprecated class IncludeProcessor extends AbstractAttributeModelProcessor
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.
layout:insert) instead.| Type | Name and description |
|---|---|
static String |
PROCESSOR_NAME |
static int |
PROCESSOR_PRECEDENCE |
| Constructor and description |
|---|
IncludeProcessor(TemplateMode templateMode, String dialectPrefix)Constructor, sets this processor to work on the 'include' attribute. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
doProcess(ITemplateContext context, IModel model, AttributeName attributeName, String attributeValue, IElementModelStructureHandler structureHandler)Locates a page fragment and includes it in the current template. |
| Methods inherited from class | Name |
|---|---|
class AbstractAttributeModelProcessor |
process, getMatchingAttributeName, getMatchingElementName, getPrecedence, getTemplateMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor, sets this processor to work on the 'include' attribute.
Locates a page fragment and includes it in the current template.
Groovy Documentation