Versions in this module Expand all Collapse all v0 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