public enum TagType extends Enum<TagType>
| Enum Constant and Description |
|---|
AMP_VAR
All variables are HTML escaped by default.
|
SECTION
Sections render blocks of text one or more times, depending on the value of the key in the
current context.
|
STAR_VAR
A var decorator tag, like:
{{*name}}. |
START_SECTION
Like {{#* decorator}}success{{/decorator}}.
|
SUB_EXPRESSION
Same as
VAR but can be invoked from inside a helper:
{{helper (subexpression)}}. |
TRIPLE_VAR
All variables are HTML escaped by default.
|
VAR
The most basic tag type is the variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
inline()
True for inline tags.
|
static TagType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagType VAR
{{name}} tag in a basic template will
try to find the name key in the current context. If there is no name key, nothing will be
rendered.public static final TagType STAR_VAR
{{*name}}.public static final TagType AMP_VAR
{{&name}}.public static final TagType TRIPLE_VAR
{{{name}}}.public static final TagType SUB_EXPRESSION
VAR but can be invoked from inside a helper:
{{helper (subexpression)}}.public static final TagType SECTION
Sections render blocks of text one or more times, depending on the value of the key in the current context.
A section begins with a pound and ends with a slash. That is, {{#person}} begins a "person" section while {{/person}} ends it.
public static final TagType START_SECTION
public static TagType[] values()
for (TagType c : TagType.values()) System.out.println(c);
public static TagType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean inline()
Copyright © 2010 - 2020 Adobe. All Rights Reserved