public final class StandardInlineAttrProcessor extends AbstractStandardTextInlinerAttrProcessor
If this attribute's value is text, then you can use the [[...]] syntax to put expressions within your text without having to use the th:text attribute processor, eg:
<p th:inline="text">Hello [[${session.user.name}]]!<p>
If this attribute's value is javascript or dart, and used in a <script> tag, then you can insert expressions directly into your JavaScript/Dart code with the /*[[...]]*/, /*[+...+]*/, and /*[-...-]*/ syntaxes.
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
DART_INLINE, JAVASCRIPT_INLINE, NONE_INLINE, TEXT_INLINE
Constructor and Description |
---|
StandardInlineAttrProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence() |
getTextInliner, 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.