| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name
The name of this tag.
|
BREAK, CONTINUE, rubyDateTimeFormat| Modifier | Constructor and Description |
|---|---|
protected |
Tag()
Used for all package protected tags in the liqp.tags-package
whose name is their class name lower cased.
|
|
Tag(java.lang.String name)
Creates a new instance of a Tag.
|
| Modifier and Type | Method and Description |
|---|---|
static Tag |
getTag(java.lang.String name)
Retrieves a filter with a specific name.
|
static java.util.Map<java.lang.String,Tag> |
getTags()
Returns all default tags.
|
static void |
registerTag(Tag tag)
Registers a new tag.
|
abstract java.lang.Object |
render(TemplateContext context,
LNode... nodes)
Renders this tag.
|
areEqual, asArray, asBoolean, asFormattedNumber, asMap, asNumber, asString, asTemporal, canBeDouble, canBeInteger, isArray, isFalsy, isInteger, isMap, isNumber, isString, isTemporal, isTruthy, mapAsArray, temporalAsArrayprotected Tag()
public Tag(java.lang.String name)
name - the name of the tag.public static Tag getTag(java.lang.String name)
name - the name of the filter to retrieve.public static java.util.Map<java.lang.String,Tag> getTags()
public static void registerTag(Tag tag)
tag - the tag to be registered.public abstract java.lang.Object render(TemplateContext context, LNode... nodes)
context - the context (variables) with which this
node should be rendered.nodes - the nodes of this tag is created with. See
the file `src/grammar/LiquidWalker.g` to see
how each of the tags is created.Copyright © 2012–2021. All rights reserved.