Documentation ¶
Index ¶
Constants ¶
View Source
const ( ESCAPE = rune('\\') DELIM = rune('$') NEWLINE = rune('\n') SEMICOLON = rune(';') EQUALS = rune('=') QUOT = rune('"') COMMA = rune(',') SPACE = rune(' ') HTAB = rune('\t') LPAREN = rune('(') RPAREN = rune(')') DOT = rune('.') UNDERSCORE = rune('_') DASH = rune('-') TRUTHY = "truthy" PRESENT = "present" )
View Source
const DEBUG = false
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AST ¶
type AST []Node
func Tokenize ¶
Tokenize takes all runes from the provided string, feeds an internal Tokenizer instance, and returns the result by calling Finish
func (AST) IsPureLiteral ¶
IsPureLiteral determines whether the AST only contains literals, meaning it contains no templating to be processed
type Conditional ¶
type Conditional struct { Property string Helper string Then AST ElseIf []*Conditional Else AST // contains filtered or unexported fields }
func (Conditional) Kind ¶
func (c Conditional) Kind() Kind
func (Conditional) Parent ¶
func (c Conditional) Parent() Node
type InvalidConditionalExpressionErr ¶
type InvalidConditionalExpressionErr struct {
// contains filtered or unexported fields
}
func (InvalidConditionalExpressionErr) Error ¶
func (u InvalidConditionalExpressionErr) Error() string
type Template ¶
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
type UnexpectedEOFErr ¶
type UnexpectedEOFErr struct {
// contains filtered or unexported fields
}
func (UnexpectedEOFErr) Error ¶
func (u UnexpectedEOFErr) Error() string
type UnexpectedLinebreakErr ¶
type UnexpectedLinebreakErr struct {
// contains filtered or unexported fields
}
func (UnexpectedLinebreakErr) Error ¶
func (u UnexpectedLinebreakErr) Error() string
type UnexpectedTokenErr ¶
type UnexpectedTokenErr struct {
// contains filtered or unexported fields
}
func (UnexpectedTokenErr) Error ¶
func (u UnexpectedTokenErr) Error() string
type UnsupportedConditionalHelperErr ¶
type UnsupportedConditionalHelperErr struct {
// contains filtered or unexported fields
}
func (UnsupportedConditionalHelperErr) Error ¶
func (u UnsupportedConditionalHelperErr) Error() string
Click to show internal directories.
Click to hide internal directories.