org.thymeleaf.standard.processor.attr
Class StandardInlineAttrProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.attr.AbstractAttrProcessor
org.thymeleaf.standard.processor.attr.AbstractStandardTextInlinerAttrProcessor
org.thymeleaf.standard.processor.attr.StandardInlineAttrProcessor
- All Implemented Interfaces:
- Comparable<IProcessor>, IProcessor
public final class StandardInlineAttrProcessor
- extends AbstractStandardTextInlinerAttrProcessor
Lets you use expressions directly in your template.
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.
- Since:
- 1.0
- Author:
- Daniel Fernández
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTR_PRECEDENCE
public static final int ATTR_PRECEDENCE
- See Also:
- Constant Field Values
ATTR_NAME
public static final String ATTR_NAME
- See Also:
- Constant Field Values
StandardInlineAttrProcessor
public StandardInlineAttrProcessor()
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence
in class AbstractProcessor
Copyright © 2013 The THYMELEAF team. All Rights Reserved.