Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefineStatement ¶ added in v0.0.9
type DefineStatement struct {
Name string
Parent Statement
EndStatement *EndStatement
// contains filtered or unexported fields
}
func (*DefineStatement) IsClosable ¶ added in v0.0.9
func (es *DefineStatement) IsClosable() bool
func (*DefineStatement) Kind ¶ added in v0.0.9
func (es *DefineStatement) Kind() string
func (*DefineStatement) Location ¶ added in v0.0.9
func (es *DefineStatement) Location() helpers.Location
type ElifStatement ¶ added in v0.0.9
type ElifStatement struct {
Program *expression.VM
// contains filtered or unexported fields
}
func (*ElifStatement) IsClosable ¶ added in v0.0.9
func (vs *ElifStatement) IsClosable() bool
func (*ElifStatement) Kind ¶ added in v0.0.9
func (vs *ElifStatement) Kind() string
func (*ElifStatement) Location ¶ added in v0.0.9
func (vs *ElifStatement) Location() helpers.Location
type ElseStatement ¶ added in v0.0.9
type ElseStatement struct {
// contains filtered or unexported fields
}
func (*ElseStatement) IsClosable ¶ added in v0.0.9
func (vs *ElseStatement) IsClosable() bool
func (*ElseStatement) Kind ¶ added in v0.0.9
func (vs *ElseStatement) Kind() string
func (*ElseStatement) Location ¶ added in v0.0.9
func (vs *ElseStatement) Location() helpers.Location
type EndStatement ¶ added in v0.0.9
type EndStatement struct {
ClosedStatement Statement
// contains filtered or unexported fields
}
func (*EndStatement) IsClosable ¶ added in v0.0.9
func (es *EndStatement) IsClosable() bool
func (*EndStatement) Kind ¶ added in v0.0.9
func (es *EndStatement) Kind() string
func (*EndStatement) Location ¶ added in v0.0.9
func (es *EndStatement) Location() helpers.Location
type Expression ¶ added in v0.0.9
type Expression struct {
Program *expression.VM
// contains filtered or unexported fields
}
func (*Expression) Dependencies ¶ added in v0.0.9
func (expr *Expression) Dependencies() []string
func (*Expression) Evaluate ¶ added in v0.0.9
func (expr *Expression) Evaluate(e *evaluator, context Context) (err error)
func (*Expression) IsClosable ¶ added in v0.0.9
func (expr *Expression) IsClosable() bool
func (*Expression) Kind ¶ added in v0.0.9
func (expr *Expression) Kind() string
func (*Expression) Location ¶ added in v0.0.9
func (expr *Expression) Location() helpers.Location
type ExtendStatement ¶ added in v0.0.9
type ExtendStatement struct {
Template string
// contains filtered or unexported fields
}
func (*ExtendStatement) IsClosable ¶ added in v0.0.9
func (es *ExtendStatement) IsClosable() bool
func (*ExtendStatement) Kind ¶ added in v0.0.9
func (es *ExtendStatement) Kind() string
func (*ExtendStatement) Location ¶ added in v0.0.9
func (es *ExtendStatement) Location() helpers.Location
type ForStatement ¶ added in v0.0.9
type ForStatement struct {
Iterable *expression.VM
KeyName string
ValueName string
EndStatement *EndStatement
// contains filtered or unexported fields
}
func (*ForStatement) Dependencies ¶ added in v0.0.9
func (st *ForStatement) Dependencies() []string
func (*ForStatement) Evaluate ¶ added in v0.0.9
func (st *ForStatement) Evaluate(e *evaluator, context Context) error
func (*ForStatement) IsClosable ¶ added in v0.0.9
func (st *ForStatement) IsClosable() bool
func (*ForStatement) Kind ¶ added in v0.0.9
func (st *ForStatement) Kind() string
func (*ForStatement) Location ¶ added in v0.0.9
func (st *ForStatement) Location() helpers.Location
func (*ForStatement) String ¶ added in v0.0.9
func (st *ForStatement) String() string
type IfStatement ¶ added in v0.0.9
type IfStatement struct {
Program *expression.VM
ElifStatements []Statement
ElseStatement Statement
EndStatement Statement
// contains filtered or unexported fields
}
func (*IfStatement) Dependencies ¶ added in v0.0.9
func (st *IfStatement) Dependencies() []string
func (*IfStatement) Evaluate ¶ added in v0.0.9
func (st *IfStatement) Evaluate(e *evaluator, context Context) error
func (*IfStatement) IsClosable ¶ added in v0.0.9
func (st *IfStatement) IsClosable() bool
func (*IfStatement) Kind ¶ added in v0.0.9
func (st *IfStatement) Kind() string
func (*IfStatement) Location ¶ added in v0.0.9
func (st *IfStatement) Location() helpers.Location
func (*IfStatement) String ¶ added in v0.0.9
func (st *IfStatement) String() string
type Preprocessor ¶ added in v0.0.9
type Preprocessor struct {
// contains filtered or unexported fields
}
func (*Preprocessor) Preprocess ¶ added in v0.0.9
func (p *Preprocessor) Preprocess(filename string, keepSlots bool) ([]Statement, error)
type SlotStatement ¶ added in v0.0.9
type SlotStatement struct {
Name string
Parent Statement
EndStatement *EndStatement
// contains filtered or unexported fields
}
func (*SlotStatement) IsClosable ¶ added in v0.0.9
func (ss *SlotStatement) IsClosable() bool
func (*SlotStatement) Kind ¶ added in v0.0.9
func (ss *SlotStatement) Kind() string
func (*SlotStatement) Location ¶ added in v0.0.9
func (ss *SlotStatement) Location() helpers.Location
type Socks ¶
type Socks interface {
ExecuteToString(template string, context map[string]interface{}) (string, error)
Execute(w io.Writer, template string, context map[string]interface{}) error
LoadTemplates(pattern string, removePrefix ...string) error
LoadTemplateFromString(filename string, content string)
Compile(staticContext map[string]interface{}) error
AddGlobal(key string, value interface{})
AddGlobals(value map[string]interface{})
GetGlobals() map[string]interface{}
ClearGlobals()
}
type Statement ¶ added in v0.0.9
type TemplateStatement ¶ added in v0.0.9
type TemplateStatement struct {
Template string
EndStatement *EndStatement
// contains filtered or unexported fields
}
func (*TemplateStatement) IsClosable ¶ added in v0.0.9
func (es *TemplateStatement) IsClosable() bool
func (*TemplateStatement) Kind ¶ added in v0.0.9
func (es *TemplateStatement) Kind() string
func (*TemplateStatement) Location ¶ added in v0.0.9
func (es *TemplateStatement) Location() helpers.Location
Source Files
¶
Click to show internal directories.
Click to hide internal directories.