Module syntax

Module syntax 

Source
Expand description

Syntax definition for template statements.

This only syntax definition for partial statements like {{ if user.is_admin() }}.

For full ast declaration, see ast.

Structs§

BlockTempl
{{ [pub] [static] block <Ident> }}
ElseTempl
{{ else [if <Expr>] }}
ForTempl
{{ for <Pat> in <Expr> }}
IfTempl
{{ if <Expr> }}
LayoutTempl
{{ <layout | extends> <"path"> }}
RenderTempl
{{ render <<Ident> | "path"> [block <Ident>] }}
UseTempl
{{ use <"path"> as <Ident> }}
YieldTempl
{{ yield [block <Ident>] }}

Enums§

ItemTempl
{{ <ItemTempl> }}
RenderValue
<Ident> | "path"
StmtSyn
Template statments.