Versions in this module Expand all Collapse all v1 v1.2.4 Jun 5, 2018 Changes in this version + type BlockCompiler func(BlockNode) (func(io.Writer, Context) error, error) + type BlockNode struct + Body []Node + Clauses []*BlockNode + type Config struct + func NewConfig() Config + func (c *Config) AddTag(name string, td TagCompiler) + func (c *Config) FindTagDefinition(name string) (TagCompiler, bool) + func (c Config) Compile(source string, loc parser.SourceLoc) (Node, parser.Error) + func (g Config) AddBlock(name string) blockDefBuilder + func (g Config) BlockSyntax(name string) (parser.BlockSyntax, bool) + type Context interface + Errorf func(format string, a ...interface{}) Error + Evaluate func(expressions.Expression) (interface{}, error) + EvaluateString func(string) (interface{}, error) + ExpandTagArg func() (string, error) + Get func(name string) interface{} + InnerString func() (string, error) + RenderBlock func(io.Writer, *BlockNode) error + RenderChildren func(io.Writer) Error + RenderFile func(string, map[string]interface{}) (string, error) + Set func(name string, value interface{}) + SourceFile func() string + TagArgs func() string + TagName func() string + WrapError func(err error) Error + type Error interface + Cause func() error + Error func() string + LineNumber func() int + Path func() string + func Render(node Node, w io.Writer, vars map[string]interface{}, c Config) Error + type Node interface + SourceLocation func() parser.SourceLoc + SourceText func() string + type ObjectNode struct + type RawNode struct + func (n *RawNode) SourceLocation() parser.SourceLoc + func (n *RawNode) SourceText() string + type SeqNode struct + Children []Node + func (n *SeqNode) SourceLocation() parser.SourceLoc + func (n *SeqNode) SourceText() string + type TagCompiler func(expr string) (func(io.Writer, Context) error, error) + type TagNode struct + type TextNode struct