AST
liquid.Node
Bases: ABC
Base class for all nodes in a parse tree.
blank
instance-attribute
If True, indicates that the node, when rendered, produces no output text or only whitespace.
The output node ({{ something }}
) and echo tag are exception. Even if they
evaluate to an empty or blank string, they are not considered "blank".
block_scope
Return variables this node adds to the node's block scope.
children
Return this node's children.
children_async
async
An async version of children()
.
partial_scope
Return information about a partial template loaded by this node.
raise_for_disabled
Raise a DisabledTagError if this node's type is in the given list.
render
Check disabled tags before delegating to render_to_output
.
render_async
async
An async version of liquid.ast.Node.render
.
render_to_output
abstractmethod
Render this node to the output buffer.
render_to_output_async
async
An async version of liquid.ast.Node.render_to_output
.
liquid.BlockNode
Bases: Node
A parse tree node representing a sequence of statements.
children
Return this node's children.
render_to_output
Render the node to the output buffer.
liquid.ConditionalBlockNode
Bases: Node
A node containing a sequence of statements and a conditional expression.
children
Return this node's children.
render_to_output
Render the node to the output buffer.
liquid.ast.Partial
Partial template meta data.
PARAMETER | DESCRIPTION |
---|---|
name
|
An expression resolving to the name associated with the partial template.
TYPE:
|
scope
|
The kind of scope the partial template should have when loaded.
TYPE:
|
in_scope
|
Names that will be added to the partial template scope.
TYPE:
|
liquid.ast.PartialScope
Bases: Enum
The kind of scope a partial template should have when loaded.