Versions in this module Expand all Collapse all v1 v1.5.4 Aug 10, 2023 Changes in this version + const VarTypeIdent + const VarTypeInt + func Inspect(node Node, f func(Node) bool) + func Walk(v Visitor, node Node) error + type BinOperator struct + Token *tokens.Token + func (op BinOperator) Position() *tokens.Token + func (op BinOperator) String() string + type BinaryExpression struct + Left Expression + Operator *BinOperator + Right Expression + func (b *BinaryExpression) Position() *tokens.Token + func (expr *BinaryExpression) String() string + type BlockSet map[string]*Wrapper + func (bs *BlockSet) Register(name string, w *Wrapper) error + func (bs *BlockSet) Replace(name string, w *Wrapper) error + func (bs BlockSet) Exists(name string) bool + type Bool struct + Location *tokens.Token + Val bool + func (b *Bool) Position() *tokens.Token + func (b *Bool) String() string + type Call struct + Args []Expression + Func Node + Kwargs map[string]Expression + Location *tokens.Token + func (c *Call) Position() *tokens.Token + func (c *Call) String() string + type Comment struct + End *tokens.Token + Start *tokens.Token + Text string + func (c *Comment) Position() *tokens.Token + func (c *Comment) String() string + type Data struct + Data *tokens.Token + Trim Trim + func (c *Data) String() string + func (d *Data) Position() *tokens.Token + type Dict struct + Pairs []*Pair + Token *tokens.Token + func (d *Dict) Position() *tokens.Token + func (d *Dict) String() string + type Error struct + Error error + Location *tokens.Token + func (c *Error) Position() *tokens.Token + func (c *Error) String() string + type Expression interface + type FilterCall struct + Args []Expression + Kwargs map[string]Expression + Name string + Token *tokens.Token + type FilteredExpression struct + Expression Expression + Filters []*FilterCall + func (expr *FilteredExpression) Position() *tokens.Token + func (expr *FilteredExpression) String() string + type Float struct + Location *tokens.Token + Val float64 + func (f *Float) Position() *tokens.Token + func (f *Float) String() string + type Getattr struct + Attr string + Index int + Location *tokens.Token + Node Node + func (g *Getattr) Position() *tokens.Token + func (g *Getattr) String() string + type Getitem struct + Arg Node + Location *tokens.Token + Node Node + func (g *Getitem) Position() *tokens.Token + func (g *Getitem) String() string + type Inspector func(Node) bool + func (f Inspector) Visit(node Node) (Visitor, error) + type Integer struct + Location *tokens.Token + Val int + func (i *Integer) Position() *tokens.Token + func (i *Integer) String() string + type List struct + Location *tokens.Token + Val []Expression + func (l *List) Position() *tokens.Token + func (l *List) String() string + type Macro struct + Kwargs []*Pair + Location *tokens.Token + Name string + Wrapper *Wrapper + func (m *Macro) Position() *tokens.Token + func (m *Macro) String() string + type Name struct + Name *tokens.Token + func (n *Name) Position() *tokens.Token + func (n *Name) String() string + type Negation struct + Operator *tokens.Token + Term Expression + func (n *Negation) Position() *tokens.Token + func (n *Negation) String() string + type Node interface + Position func() *tokens.Token + type None struct + Location *tokens.Token + func (n *None) Position() *tokens.Token + func (n *None) String() string + type Output struct + Alternative Expression + Condition Expression + End *tokens.Token + Expression Expression + Start *tokens.Token + func (o *Output) Position() *tokens.Token + func (o *Output) String() string + type Pair struct + Key Expression + Value Expression + func (p *Pair) Position() *tokens.Token + func (p *Pair) String() string + type Statement interface + type StatementBlock struct + Location *tokens.Token + Name string + Stmt Statement + func (s StatementBlock) Position() *tokens.Token + func (s StatementBlock) String() string + type String struct + Location *tokens.Token + Val string + func (s *String) Position() *tokens.Token + func (s *String) String() string + type Template struct + Blocks BlockSet + Macros map[string]*Macro + Name string + Nodes []Node + Parent *Template + func (t *Template) Position() *tokens.Token + func (t *Template) String() string + func (tpl *Template) GetBlocks(name string) []*Wrapper + type TestCall struct + Args []Expression + Kwargs map[string]Expression + Name string + Token *tokens.Token + func (tc *TestCall) String() string + type TestExpression struct + Expression Expression + Test *TestCall + func (expr *TestExpression) Position() *tokens.Token + func (expr *TestExpression) String() string + type Trim struct + Left bool + Right bool + type Tuple struct + Location *tokens.Token + Val []Expression + func (t *Tuple) Position() *tokens.Token + func (t *Tuple) String() string + type UnaryExpression struct + Negative bool + Operator *tokens.Token + Term Expression + func (u *UnaryExpression) Position() *tokens.Token + func (u *UnaryExpression) String() string + type Variable struct + Location *tokens.Token + Parts []*VariablePart + func (v *Variable) Position() *tokens.Token + func (v *Variable) String() string + type VariablePart struct + Args []Expression + I int + IsFunctionCall bool + Kwargs map[string]Expression + S string + Type int + func (vp *VariablePart) String() string + type Visitor interface + Visit func(node Node) (Visitor, error) + type Wrapper struct + EndTag string + LStrip bool + Location *tokens.Token + Nodes []Node + Trim *Trim + func (w Wrapper) Position() *tokens.Token + func (w Wrapper) String() string