Module

nodes.output

Output and formatting nodes for Kida AST.

Classes

Output 2 ▼
Output expression: {{ expr }}

Output expression: {{ expr }}

Attributes

Name Type Description
expr Expr —
escape bool —
Data 1 ▼
Raw text data between template constructs.

Raw text data between template constructs.

Attributes

Name Type Description
value str —
FilterBlock 2 ▼
Apply filter to block: {% filter upper %}...{% end %}

Apply filter to block: {% filter upper %}...{% end %}

Attributes

Name Type Description
filter Filter —
body Sequence[Node] —
Autoescape 2 ▼
Control autoescaping: {% autoescape true %}...{% end %}

Control autoescaping: {% autoescape true %}...{% end %}

Attributes

Name Type Description
enabled bool —
body Sequence[Node] —
Raw 1 ▼
Raw block (no template processing): {% raw %}...{% end %}

Raw block (no template processing): {% raw %}...{% end %}

Attributes

Name Type Description
value str —
Trim 1 ▼
Whitespace control block: {% trim %}...{% end %}

Whitespace control block: {% trim %}...{% end %}

Attributes

Name Type Description
body Sequence[Node] —
Spaceless 1 ▼
Remove whitespace between HTML tags: {% spaceless %}...{% end %}

Remove whitespace between HTML tags: {% spaceless %}...{% end %}

Attributes

Name Type Description
body Sequence[Node] —
Flush 0 ▼
Streaming flush boundary: {% flush %}

Streaming flush boundary: {% flush %}