Documentation ¶
Index ¶
Constants ¶
View Source
const ( NamedBlockDefault = iota NamedBlockAppend NamedBlockPrepend )
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 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 NewVariable ¶
type NewVariable struct { SourcePosition X string Expression string }
type Node ¶
type Node interface {
Pos() SourcePosition
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func ByteParser ¶
func FileParser ¶
func StringParser ¶
func VirtualFileParser ¶
func VirtualFileParser(filename string, fs http.FileSystem) (*Parser, error)
func (*Parser) SetFilename ¶
func (*Parser) SetVirtualFilesystem ¶
func (p *Parser) SetVirtualFilesystem(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.