Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = exec.StatementSet{}
All holds all builtins statements for easier registration
Functions ¶
This section is empty.
Types ¶
type AutoescapeStmt ¶
func (*AutoescapeStmt) Execute ¶
func (stmt *AutoescapeStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
func (*AutoescapeStmt) Position ¶
func (stmt *AutoescapeStmt) Position() *tokens.Token
func (*AutoescapeStmt) String ¶
func (stmt *AutoescapeStmt) String() string
type BlockInfos ¶
type ExtendsStmt ¶
func (*ExtendsStmt) Position ¶
func (stmt *ExtendsStmt) Position() *tokens.Token
func (*ExtendsStmt) String ¶
func (stmt *ExtendsStmt) String() string
type FilterStmt ¶
type FilterStmt struct {
// contains filtered or unexported fields
}
func (*FilterStmt) Execute ¶
func (node *FilterStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
func (*FilterStmt) Position ¶
func (stmt *FilterStmt) Position() *tokens.Token
func (*FilterStmt) String ¶
func (stmt *FilterStmt) String() string
type ForStmt ¶
type ForStmt struct {
// contains filtered or unexported fields
}
type FromImportStmt ¶
type FromImportStmt struct {
Location *tokens.Token
Filename string
FilenameExpr nodes.Expression
WithContext bool
Template *nodes.Template
As map[string]string
Macros map[string]*nodes.Macro // alias/name -> macro instance
}
func (*FromImportStmt) Execute ¶
func (stmt *FromImportStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
func (*FromImportStmt) Position ¶
func (stmt *FromImportStmt) Position() *tokens.Token
func (*FromImportStmt) String ¶
func (stmt *FromImportStmt) String() string
type ImportStmt ¶
type ImportStmt struct {
Location *tokens.Token
Filename string
FilenameExpr nodes.Expression
As string
WithContext bool
Template *nodes.Template
}
func (*ImportStmt) Execute ¶
func (stmt *ImportStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
func (*ImportStmt) Position ¶
func (stmt *ImportStmt) Position() *tokens.Token
func (*ImportStmt) String ¶
func (stmt *ImportStmt) String() string
type IncludeEmptyStmt ¶
type IncludeEmptyStmt struct{}
type IncludeStmt ¶
type IncludeStmt struct {
// tpl *Template
Location *tokens.Token
Filename string
FilenameExpr nodes.Expression
Template *nodes.Template
IgnoreMissing bool
WithContext bool
IsEmpty bool
}
func (*IncludeStmt) Execute ¶
func (stmt *IncludeStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
func (*IncludeStmt) Position ¶
func (stmt *IncludeStmt) Position() *tokens.Token
func (*IncludeStmt) String ¶
func (stmt *IncludeStmt) String() string
type LoopInfos ¶
type SetStmt ¶
type SetStmt struct {
Location *tokens.Token
Target nodes.Expression
Expression nodes.Expression
}
Click to show internal directories.
Click to hide internal directories.