Versions in this module Expand all Collapse all v0 v0.6.0 Aug 15, 2026 Changes in this version type Element + ContainsRaw bool type StaticAttr + LiteralName bool type Token + Raw bool type TokenType + const TokRaw v0.5.0 Aug 7, 2026 Changes in this version + type Portal struct + Children []Node + Pos Position v0.4.0 Jul 28, 2026 Changes in this version type Position + func (p Position) Advance(s string) Position v0.3.1 Jul 25, 2026 v0.3.0 Jul 25, 2026 v0.2.0 Jul 24, 2026 v0.1.2 Jul 22, 2026 v0.1.1 Jul 22, 2026 v0.1.0 Jul 22, 2026 Changes in this version + func LexPlainEndsExpr(c byte, prev bool) bool + func LexSkip(s string, i int, prevEndsExpr bool) (next int, pee bool, consumed bool) + type Attr interface + func ScanSVGFile(src []byte, filename string) (rootAttrs []Attr, inner string, err error) + type Case struct + Clauses []WhenClause + Else []Node + Expr string + Pos Position + type Component struct + Children []Node + Name string + Pos Position + Props []Attr + type DynamicAttr struct + Expr string + Name string + Pos Position + type Element struct + Attrs []Attr + Children []Node + Pos Position + RawInner *string + RawSrc string + Tag string + func Parse(source []byte, filename string) (*Element, error) + func ParseSkeleton(sec *Sections, filename string) (*Element, error) + func ParseTemplate(sec *Sections, filename string) (*Element, error) + type ErrorList []*ParseError + func (l ErrorList) Error() string + type EventAttr struct + Expr string + Modifiers []string + Name string + Pos Position + type For struct + Body []Node + Collection string + Counter string + IsRange bool + Item string + Pos Position + RangeFrom string + RangeTo string + type FormatterCall struct + Args []string + Name string + type If struct + Cond string + Else []Node + Pos Position + Then []Node + type InlineIfPart struct + Cond string + Else []Part + Pos Position + Then []Part + type InlineSVG struct + Pos Position + Src string + SrcPos Position + type InterpPart struct + Interp *Interpolation + type Interpolation struct + Expr string + Formatters []FormatterCall + Pos Position + type MixedAttr struct + Name string + Parts []Part + Pos Position + type Node interface + type ParseError struct + Col int + File string + Line int + Message string + Note string + func (e *ParseError) Error() string + type ParsedFile struct + HasStyles bool + Root *Element + Scripts string + Styles string + func ParseFile(source []byte, filename string) (*ParsedFile, error) + type Part interface + type Position struct + Col int + Line int + Offset int + type Sections struct + HasSkeleton bool + HasStyles bool + Scripts string + ScriptsLang string + ScriptsPos Position + Skeleton string + SkeletonMinDuration int + SkeletonPos Position + SkeletonTagPos Position + Styles string + StylesPos Position + StylesScoped bool + StylesTagPos Position + TemplateAttrs []Attr + TemplateContent string + TemplatePos Position + ViewTagPos Position + func SplitSections(src, filename string) (*Sections, error) + type Slot struct + Children []Node + Name string + Pos Position + type StaticAttr struct + Name string + Pos Position + Value string + Valueless bool + type StaticPart struct + Text string + type Text struct + Pos Position + Value string + type Token struct + Col int + Line int + Offset int + Quote byte + Type TokenType + Value string + type TokenType int + const TokAttrBare + const TokAttrBrace + const TokAttrName + const TokAttrQuoted + const TokBlockClose + const TokBlockOpen + const TokComment + const TokEOF + const TokElse + const TokElseIf + const TokEquals + const TokInterp + const TokSelfClose + const TokTagClose + const TokTagEnd + const TokTagOpen + const TokText + const TokWhen + func (t TokenType) String() string + type WhenClause struct + Body []Node + Pos Position + Values []string