| Modifier and Type | Class and Description |
|---|---|
static class |
Tag.Statement |
| 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(String name)
Creates a new instance of a Tag.
|
| Modifier and Type | Method and Description |
|---|---|
static Tag |
getTag(String name)
Retrieves a filter with a specific name.
|
static Map<String,Tag> |
getTags()
Returns all default tags.
|
static void |
registerTag(Tag tag)
Registers a new tag.
|
abstract Object |
render(TemplateContext context,
LNode... nodes)
Renders this tag.
|
public final String name
protected Tag()
public Tag(String name)
name - the name of the tag.public static Tag getTag(String name)
name - the name of the filter to retrieve.public static Map<String,Tag> getTags()
public static void registerTag(Tag tag)
tag - the tag to be registered.public abstract 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–2016. All rights reserved.