Versions in this module Expand all Collapse all v0 v0.9.3 Jan 18, 2026 v0.9.2 Jan 18, 2026 v0.9.1 Jan 18, 2026 v0.9.0 Jan 18, 2026 v0.8.1 Jan 18, 2026 v0.8.0 Jan 18, 2026 v0.7.0 Jan 17, 2026 v0.6.0 Jan 17, 2026 v0.5.0 Jan 17, 2026 v0.4.1 Jan 17, 2026 v0.4.0 Jan 17, 2026 v0.3.0 Jan 17, 2026 v0.2.0 Jan 17, 2026 Changes in this version + type Document struct + Filename string + IsTemplateFragment bool + Root *Node + func Parse(filename string, content []byte) (*Document, error) + func ParseFragment(filename string, content []byte) (*Document, error) + func ParseReader(filename string, r io.Reader) (*Document, error) + func (d *Document) Walk(fn WalkFunc) + type Node struct + Children []*Node + Col int + Line int + Parent *Node + func (n *Node) GetAttr(name string) string + func (n *Node) HasAttr(name string) bool + func (n *Node) IsElement(tag string) bool + func (n *Node) TextContent() string + type Preprocessor struct + func NewPreprocessor() *Preprocessor + func (p *Preprocessor) Process(input []byte) ([]byte, *SourceMap, error) + func (p *Preprocessor) ProcessFile(content []byte) ([]byte, *SourceMap, error) + type SourceMap struct + Original []byte + Processed []byte + func (sm *SourceMap) OriginalPosition(line, col int) (origLine, origCol int) + type WalkFunc func(*Node) bool