Documentation
¶
Index ¶
- Constants
- Variables
- func Eval[T any](ctx RenderContext, value string) (T, error)
- func GetNodeIndent(node *Node) string
- func IsLineBreakNode(node *Node) bool
- func Parse(r io.Reader, root *Node) error
- func QAttrs2Attrs(input Attrs) []xml.Attr
- func RemoveLineBreak(node *Node) bool
- func RenderString(ctx RenderContext, src *Node) (value string, fErr error)
- type Attrs
- type Node
- type RenderContext
- type RenderResponse
Constants ¶
View Source
const ( TOut = "t-out" TForeach = "t-foreach" TAs = "t-as" TIf = "t-if" TAttr = "t-att" TBR = "t-break-line" )
Variables ¶
View Source
var UndefinedNodeError = errors.New("node is undefined")
Functions ¶
func GetNodeIndent ¶
func IsLineBreakNode ¶ added in v0.1.2
func QAttrs2Attrs ¶
func RemoveLineBreak ¶ added in v0.1.2
func RenderString ¶
func RenderString(ctx RenderContext, src *Node) (value string, fErr error)
Types ¶
type Node ¶
type RenderContext ¶
Click to show internal directories.
Click to hide internal directories.