public class StandardIncludeFragmentAttrProcessor extends AbstractStandardFragmentHandlingAttrProcessor
<div th:include="templateName :: fragmentName"><div>
The above will find the template named templateName, and add the fragment named fragmentName as a child of this element.
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
static String |
FRAGMENT_ATTR_NAME |
Constructor and Description |
---|
StandardIncludeFragmentAttrProcessor() |
Modifier and Type | Method and Description |
---|---|
protected String |
getFragmentSignatureUnprefixedAttributeName(Arguments arguments,
Element element,
String attributeName,
String attributeValue) |
int |
getPrecedence() |
protected boolean |
getRemoveHostNode(Arguments arguments,
Element element,
String attributeName,
String attributeValue) |
computeFragment
processAttribute
doProcess, getMatcher
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
public static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
public static final String FRAGMENT_ATTR_NAME
public StandardIncludeFragmentAttrProcessor()
public int getPrecedence()
getPrecedence
in class AbstractProcessor
protected String getFragmentSignatureUnprefixedAttributeName(Arguments arguments, Element element, String attributeName, String attributeValue)
getFragmentSignatureUnprefixedAttributeName
in class AbstractStandardFragmentHandlingAttrProcessor
protected boolean getRemoveHostNode(Arguments arguments, Element element, String attributeName, String attributeValue)
getRemoveHostNode
in class AbstractFragmentHandlingAttrProcessor
Copyright © 2017 The THYMELEAF team. All rights reserved.