module tags
Global Variables
- include_expression_rules
- TOKEN_BLANK
- TOKEN_COLON
- TOKEN_COMMA
- TOKEN_EMPTY
- TOKEN_EOF
- TOKEN_EXPRESSION
- TOKEN_FALSE
- TOKEN_IDENTIFIER
- TOKEN_NIL
- TOKEN_NULL
- TOKEN_TAG
- TOKEN_TRUE
- TAG_MERGE_DIFF
- TAG_ENDMERGE_DIFF
- ENDMERGE_DIFFBLOCK
- TAG_EVALUATE
- TOKEN_USING
- evaluate_expression_keywords
- all_tags
function register_tags
register_tags(env: Environment, tags: Iterable[Type[Tag]]) → None
register_tags Adds the given tags to the Environment as long as a tag with the same name has not already been added
Args:
env
(Environment): The rendering environmenttags
(Iterable[type[Tag]]): The tags to register / add
class MergeDiffNode
Parse tree node for the "mergeDiff" tag.
method __init__
__init__(tok: Token, identifier: str, block: BlockNode) → None
method children
children() → List[ChildNode]
method render_to_output
render_to_output(context: Context, buffer: <class 'TextIO'>) → Optional[bool]
class MergeDiffTag
The "mergeDiff" tag.
method __init__
__init__(env: Environment) → None
method parse
parse(stream: TokenStream) → Node
class EvaluateNode
Parse tree node for the built-in "evaluate" tag.
method __init__
__init__(
tok: Token,
name: str,
template_name: Expression,
args: Optional[Mapping[str, Expression]] = None
) → None
method children
children() → List[ChildNode]
method render_to_output
render_to_output(context: Context, _: <class 'TextIO'>) → Optional[bool]
class EvaluateTag
The "evaluate" tag.
method parse
parse(stream: TokenStream) → Node
Read an EvaluateNode from the given stream of tokens.
This file was automatically generated via lazydocs.