public final class StandardWithAttrProcessor extends AbstractStandardLocalVariableDefinitionAttrProcessor
<div th:with="firstPer=${persons[0]},secondPer=${persons[1]}">
<p th:text="${firstPer.name}">First person name<p>
<p th:text="${secondPer.name}">Second person name<p>
</div>
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
Constructor and Description |
---|
StandardWithAttrProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence() |
getNewLocalVariables
processAttribute
doProcess, getMatcher
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
public static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
public int getPrecedence()
getPrecedence
in class AbstractProcessor
Copyright © 2017 The THYMELEAF team. All rights reserved.