InsertProcessor
(layout:insert
) instead.@Deprecated public class IncludeProcessor extends org.thymeleaf.processor.element.AbstractAttributeModelProcessor
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.Modifier and Type | Field and Description |
---|---|
static String |
PROCESSOR_NAME
Deprecated.
|
static int |
PROCESSOR_PRECEDENCE
Deprecated.
|
Constructor and Description |
---|
IncludeProcessor(org.thymeleaf.templatemode.TemplateMode templateMode,
String dialectPrefix)
Deprecated.
Constructor, sets this processor to work on the 'include' attribute.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doProcess(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IModel model,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue,
org.thymeleaf.processor.element.IElementModelStructureHandler structureHandler)
Deprecated.
Locates a page fragment and includes it in the current template.
|
doProcess
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, process
getPrecedence, getTemplateMode
public static final String PROCESSOR_NAME
public static final int PROCESSOR_PRECEDENCE
public IncludeProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix)
templateMode
- dialectPrefix
- protected void doProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModel model, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementModelStructureHandler structureHandler)
doProcess
in class org.thymeleaf.processor.element.AbstractAttributeModelProcessor
context
- model
- attributeName
- attributeValue
- structureHandler
- Copyright © 2016. All rights reserved.