Documentation ¶
Index ¶
- Variables
- func Case(content string) (start, end int, err error)
- func Expression(src string) (start, end int, err error)
- func For(content string) (start, end int, err error)
- func Func(content string) (name, expr string, err error)
- func If(content string) (start, end int, err error)
- func SliceArgs(content string) (expr string, err error)
- func Switch(content string) (start, end int, err error)
- func TemplExpression(src string) (start, end int, err error)
- type ErrUnbalanced
- type ExpressionParser
- type Extractor
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrContainerFuncNotFound = errors.New("parser error: templ container function not found") ErrExpectedNodeNotFound = errors.New("parser error: expected node not found") )
Functions ¶
func Expression ¶
func TemplExpression ¶ added in v0.2.619
Types ¶
type ErrUnbalanced ¶ added in v0.2.619
func (ErrUnbalanced) Error ¶ added in v0.2.619
func (e ErrUnbalanced) Error() string
type ExpressionParser ¶ added in v0.2.619
type ExpressionParser struct { Stack Stack[token.Token] End int Previous token.Token Fns Stack[int] // Stack of function depths. }
func NewExpressionParser ¶ added in v0.2.619
func NewExpressionParser() *ExpressionParser
Click to show internal directories.
Click to hide internal directories.