Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Append ¶
type Append struct {
Append string
}
Append represents regular text without any template expressions
type Block ¶
Block represents block of statements
func (*Block) AddStatement ¶
func (*Block) Statements ¶
type ConditionContainer ¶
type ConditionContainer interface {
AddCondition(condition *If)
}
type Evaluate ¶
type Evaluate struct {
X ast.Expression
}
Evaluate represents template expression evaluated in runtime
type ForEach ¶
ForEach represents for each loop
func (*ForEach) AddStatement ¶
func (*ForEach) Statements ¶
type ForLoop ¶ added in v0.2.0
ForLoop represents regular for loop
func (*ForLoop) AddStatement ¶ added in v0.2.0
func (*ForLoop) Statements ¶ added in v0.2.0
type If ¶
type If struct {
Condition ast2.Expression
Body Block
Else *If
}
If represents conditional statement
func (*If) AddCondition ¶
func (*If) AddStatement ¶
func (*If) Statements ¶
type Statement ¶
type Statement struct {
X ast2.Expression //left operand
Op ast2.Operand // =
Y ast2.Expression //right operand
}
Statement represents assign statement i.e. $var = 10
Click to show internal directories.
Click to hide internal directories.