Documentation ¶
Index ¶
Constants ¶
View Source
const ( NamedBlockDefault = iota NamedBlockAppend NamedBlockPrepend )
View Source
const DebugParser = false
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct { SourcePosition X string Expression string }
type Attribute ¶
type Attribute struct { SourcePosition Name string Value string IsRaw bool Condition string }
type Block ¶
type Block struct { SourcePosition Children []Node }
type Buffered ¶
type Buffered struct { SourcePosition Expression string Escaped bool }
type Condition ¶
type Condition struct { SourcePosition Positive *Block Negative *Block Expression string }
type Doctype ¶
type Doctype struct { SourcePosition Value string }
type MixinCall ¶
type MixinCall struct { SourcePosition Name string Args []string }
type NamedBlock ¶
type Node ¶
type Node interface {
Pos() SourcePosition
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func FileParser ¶
func FileParserFs ¶
func StringParser ¶
func (*Parser) FileSystem ¶
func (p *Parser) FileSystem(fs http.FileSystem)
type SourcePosition ¶
func (*SourcePosition) Pos ¶
func (s *SourcePosition) Pos() SourcePosition
type Tag ¶
type Tag struct { SourcePosition Block *Block Name string IsInterpolated bool Attributes []Attribute }
func (*Tag) IsSelfClosing ¶
type Text ¶
type Text struct { SourcePosition Value string Raw bool }
Click to show internal directories.
Click to hide internal directories.