Documentation ¶
Index ¶
- Constants
- Variables
- type Element
- func (el *Element) Add(args ...xgo.Object) (xgo.Object, error)
- func (el *Element) IndexGet(index xgo.Object) (xgo.Object, error)
- func (el *Element) SetBody(args ...xgo.Object) (xgo.Object, error)
- func (el *Element) SetFinal(args ...xgo.Object) (xgo.Object, error)
- func (el *Element) String() string
- func (el *Element) TypeName() string
- type Renderer
Constants ¶
View Source
const RawTag = "raw"
Variables ¶
View Source
var Module = map[string]xgo.Object{ "Renderer": &xgo.BuiltinFunction{ Name: "Renderer", Value: func(args ...xgo.Object) (xgo.Object, error) { ret := &Renderer{} return ret, nil }, }, }
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { xgo.ObjectImpl Tag string Attr map[string]string Children []*Element // The value makes sense only if // the tag is the "raw" Content string Final bool }
The type implements basic way to structrize HTML elements.
func MakeElements ¶
Click to show internal directories.
Click to hide internal directories.