Documentation
¶
Index ¶
- type Attr
- type BooleanAttribute
- type HeadEls
- func (h *HeadEls) Add(defs ...typeInterface)
- func (h *HeadEls) AddElements(other *HeadEls)
- func (h *HeadEls) As(as string) *Attr
- func (h *HeadEls) Attr(name, value string) *Attr
- func (h *HeadEls) BoolAttr(name string) BooleanAttribute
- func (h *HeadEls) Charset(charset string) *Attr
- func (h *HeadEls) Collect() []*htmlutil.Element
- func (h *HeadEls) Content(content string) *Attr
- func (h *HeadEls) CrossOrigin(crossOrigin string) *Attr
- func (h *HeadEls) DangerousInnerHTML(content string) InnerHTML
- func (h *HeadEls) Description(description string)
- func (h *HeadEls) Href(href string) *Attr
- func (h *HeadEls) Link(defs ...typeInterface)
- func (h *HeadEls) Meta(defs ...typeInterface)
- func (h *HeadEls) MetaNameContent(name, content string)
- func (h *HeadEls) MetaPropertyContent(property, content string)
- func (h *HeadEls) Name(name string) *Attr
- func (h *HeadEls) Property(property string) *Attr
- func (h *HeadEls) Rel(rel string) *Attr
- func (h *HeadEls) Script(defs ...typeInterface)
- func (h *HeadEls) SelfClosing() SelfClosing
- func (h *HeadEls) Src(src string) *Attr
- func (h *HeadEls) Style(defs ...typeInterface)
- func (h *HeadEls) TextContent(content string) TextContent
- func (h *HeadEls) Title(title string)
- func (h *HeadEls) Type(type_ string) *Attr
- type InnerHTML
- type Instance
- type SelfClosing
- type SortedAndPreEscapedHeadEls
- type Tag
- type TextContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanAttribute ¶
type BooleanAttribute string
func (BooleanAttribute) GetType ¶
func (BooleanAttribute) GetType() htmlutilType
type HeadEls ¶
type HeadEls struct {
// contains filtered or unexported fields
}
func (*HeadEls) AddElements ¶ added in v0.83.0
func (*HeadEls) BoolAttr ¶ added in v0.83.0
func (h *HeadEls) BoolAttr(name string) BooleanAttribute
func (*HeadEls) CrossOrigin ¶ added in v0.83.0
func (*HeadEls) DangerousInnerHTML ¶ added in v0.83.0
func (*HeadEls) Description ¶
func (*HeadEls) MetaNameContent ¶ added in v0.83.0
func (*HeadEls) MetaPropertyContent ¶ added in v0.83.0
func (*HeadEls) SelfClosing ¶ added in v0.83.0
func (h *HeadEls) SelfClosing() SelfClosing
func (*HeadEls) TextContent ¶ added in v0.83.0
func (h *HeadEls) TextContent(content string) TextContent
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func (*Instance) InitUniqueRules ¶
func (*Instance) Render ¶
func (inst *Instance) Render(input *SortedAndPreEscapedHeadEls) (template.HTML, error)
func (*Instance) ToSortedAndPreEscapedHeadEls ¶
func (inst *Instance) ToSortedAndPreEscapedHeadEls(els []*htmlutil.Element) *SortedAndPreEscapedHeadEls
type SelfClosing ¶
type SelfClosing bool
func (SelfClosing) GetType ¶
func (SelfClosing) GetType() htmlutilType
type TextContent ¶
type TextContent string
func (TextContent) GetType ¶
func (TextContent) GetType() htmlutilType
Click to show internal directories.
Click to hide internal directories.