Versions in this module Expand all Collapse all v0 v0.3.0 Jun 23, 2018 Changes in this version + type AttrEndBlock struct + Name string + Package string + Pos Pos + func (blk *AttrEndBlock) Namespace() string + type AttrStartBlock struct + Name string + Package string + Pos Pos + Yield []Block + func (blk *AttrStartBlock) Namespace() string + type ComponentEndBlock struct + Name string + Package string + Pos Pos + func (blk *ComponentEndBlock) Namespace() string + type ComponentStartBlock struct + Attrs []*AttrStartBlock + Closed bool + Fields []*Field + Name string + Package string + Pos Pos + Yield []Block + func (blk *ComponentStartBlock) Namespace() string + type Field struct + Name string + NamePos Pos + Value string + ValuePos Pos type Pos + func Position(blk Block) Pos + type SyntaxError struct + Message string + Pos Pos + func NewSyntaxError(pos Pos, format string, args ...interface{}) *SyntaxError + func (e *SyntaxError) Error() string type Template + func (t *Template) WriteTo(w io.Writer) (n int64, err error) v0.2.0 Jul 8, 2017 v0.1.0 May 6, 2015 Changes in this version + var ErrDeclarationRequired = errors.New("declaration required") + type Block interface + type CodeBlock struct + Content string + Pos Pos + type DeclarationBlock struct + Content string + Pos Pos + type HeaderBlock struct + Content string + Pos Pos + type Package struct + Name string + Templates []*Template + func (p *Package) Write(w io.Writer) error + type Pos struct + LineNo int + Path string + type PrintBlock struct + Content string + Pos Pos + type RawPrintBlock struct + Content string + Pos Pos + type Scanner struct + func NewScanner(r io.Reader, path string) *Scanner + func (s *Scanner) Scan() (Block, error) + type Template struct + Blocks []Block + Path string + func Parse(r io.Reader, path string) (*Template, error) + func ParseFile(path string) (*Template, error) + func (t *Template) Write(w io.Writer) error + type TextBlock struct + Content string + Pos Pos