Module

nodes.variables

Variable and scoping nodes for Kida AST.

Classes

Let 2
Template-scoped variable: {% let x = expr %}

Template-scoped variable: {% let x = expr %}

Attributes

Name Type Description
name Expr
value Expr
Set 2
Block-scoped variable: {% set x = expr %}

Block-scoped variable: {% set x = expr %}

Attributes

Name Type Description
target Expr
value Expr
Export 2
Export variable from inner scope: {% export x = expr %}

Export variable from inner scope: {% export x = expr %}

Attributes

Name Type Description
name Expr
value Expr
Capture 3
Capture block content: {% capture x %}...{% end %}

Capture block content: {% capture x %}...{% end %}

Attributes

Name Type Description
name str
body Sequence[Node]
filter Filter | None