Expand description
Abstract syntax tree for templates after crate::parser::parse.
Expr covers outputs ({{ … }}) including literals, variables, and operators
(aligned with Nunjucks parseExpression).
Structs§
- IfBranch
- One branch of an
{% if %}/{% elif %}/{% else %}chain. - Macro
Def - A template macro definition (
{% macro name(args) %}…{% endmacro %}). - Macro
Param - One formal parameter in a
{% macro %}header (aora = expr). - Switch
Case - One
{% case expr %}…branch inside{% switch %}.
Enums§
- BinOp
- Binary operators (arithmetic, logical short-circuit forms use these in the AST).
- Compare
Op - Comparison operators in a Nunjucks-style chain (
a == b < c). - Expr
- Expression inside a variable tag or tag body (when wired up).
- ForVars
- Loop binding list after
for(xork, vora, b, c). - Node
- Template structure produced by the parser.
- UnaryOp