Versions in this module Expand all Collapse all v1 v1.0.1 Feb 14, 2020 Changes in this version + var TabSize = 4 + func Config(c Cfg) + func ConfigOtputPHP() + func Parse(name string, text []byte) (string, error) + func ParseFile(filename string) (string, error) + type BlockNode struct + Name string + func (t *BlockNode) Copy() Node + func (t *BlockNode) String() string + func (t *BlockNode) WriteIn(b io.Writer) + type Cfg struct + CodeBuffered string + CodeCaseDef string + CodeCaseWhen string + CodeElse string + CodeElseIf string + CodeForElse string + CodeLongcode string + CodeMixBlock string + CodeUnescaped string + CondCase string + CondEnd string + CondFor string + CondForIf string + CondIf string + CondUnless string + CondWhile string + GolangMode bool + MixinBgn string + MixinEnd string + MixinVar string + MixinVarBgn string + MixinVarBlock string + MixinVarBlockBgn string + MixinVarBlockEnd string + MixinVarEnd string + MixinVarRest string + TagArgAdd string + TagArgBgn string + TagArgEnd string + TagArgEsc string + TagArgStr string + TagArgUne string + TagBgn string + TagEnd string + TagVoid string + TextComment string + TextStr string + type CodeNode struct + Code []byte + func (t *CodeNode) Copy() Node + func (t *CodeNode) String() string + func (t *CodeNode) WriteIn(b io.Writer) + type CondNode struct + Nodes []Node + func (l *CondNode) Copy() Node + func (l *CondNode) CopyCond() *CondNode + func (l *CondNode) String() string + func (l *CondNode) WriteIn(b io.Writer) + type DoctypeNode struct + func (d *DoctypeNode) Copy() Node + func (d *DoctypeNode) String() string + func (d *DoctypeNode) WriteIn(b io.Writer) + type ListNode struct + Nodes []Node + func (l *ListNode) Copy() Node + func (l *ListNode) CopyList() *ListNode + func (l *ListNode) String() string + func (l *ListNode) WriteIn(b io.Writer) + type MixinNode struct + AttrCode []string + AttrName []string + AttrRest []string + MixinName string + Nodes []Node + func (l *MixinNode) Copy() Node + func (l *MixinNode) CopyMixin() *MixinNode + func (l *MixinNode) String() string + func (l *MixinNode) WriteIn(b io.Writer) + type Node interface + Copy func() Node + Position func() Pos + String func() string + Type func() NodeType + WriteIn func(io.Writer) + type NodeType int + const NodeBlock + const NodeCode + const NodeCond + const NodeDoctype + const NodeList + const NodeMixin + const NodeString + const NodeTag + const NodeText + func (i NodeType) String() string + func (t NodeType) Type() NodeType + type Out struct + Args string + Import string + Name string + var Go Out + type Pos int + func (p Pos) Position() Pos + type TagNode struct + AttrCode []string + AttrName []string + AttrUesc []bool + Nodes []Node + TagName string + func (l *TagNode) Copy() Node + func (l *TagNode) CopyTag() *TagNode + func (l *TagNode) String() string + func (l *TagNode) WriteIn(b io.Writer) + type TextNode struct + Text []byte + func (t *TextNode) Copy() Node + func (t *TextNode) String() string + func (t *TextNode) WriteIn(b io.Writer) + type Tree struct + Name string + Root *ListNode + func New(name string) *Tree + func (t *Tree) Copy() *Tree + func (t *Tree) Parse(text []byte) (tree *Tree, err error) + func (t *Tree) WriteIn(b io.Writer)