Documentation
¶
Index ¶
- Constants
- type Attr
- type BooleanAttribute
- type Builder
- func (b *Builder) Add(defs ...element_def)
- func (b *Builder) Append(other *Builder)
- func (b *Builder) As(as string) *Attr
- func (b *Builder) Attr(name, value string) *Attr
- func (b *Builder) AttrExists(name string) *Attr
- func (b *Builder) BoolAttr(name string) BooleanAttribute
- func (b *Builder) Charset(charset string) *Attr
- func (b *Builder) Content(content string) *Attr
- func (b *Builder) CrossOrigin(co string) *Attr
- func (b *Builder) DangerousInnerHTML(content string) InnerHTML
- func (b *Builder) Description(desc string)
- func (b *Builder) Elements() []*htmlutil.Element
- func (b *Builder) Href(href string) *Attr
- func (b *Builder) Link(defs ...element_def)
- func (b *Builder) Meta(defs ...element_def)
- func (b *Builder) MetaCharset(charset string)
- func (b *Builder) MetaNameContent(name, content string)
- func (b *Builder) MetaPropertyContent(prop, content string)
- func (b *Builder) Name(name string) *Attr
- func (b *Builder) Property(prop string) *Attr
- func (b *Builder) Rel(rel string) *Attr
- func (b *Builder) Script(defs ...element_def)
- func (b *Builder) SelfClosing() SelfClosing
- func (b *Builder) Src(src string) *Attr
- func (b *Builder) Style(defs ...element_def)
- func (b *Builder) TextContent(content string) TextContent
- func (b *Builder) Title(title string)
- func (b *Builder) Type(t string) *Attr
- type InnerHTML
- type Prepared
- type Renderer
- type SelfClosing
- type Tag
- type TextContent
Constants ¶
View Source
const AttrAnyValue = "\x00__vorma_headels_any__"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanAttribute ¶
type BooleanAttribute string
func (BooleanAttribute) Type ¶
func (BooleanAttribute) Type() element_def_kind
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is an ordered collection of HTML head elements. It is NOT safe for concurrent use; callers must synchronize externally.
func FromElements ¶
FromElements wraps existing elements into a Builder.
func (*Builder) Add ¶
func (b *Builder) Add(defs ...element_def)
Add appends a new element built from the provided definitions. Panics if no Tag is provided.
func (*Builder) AttrExists ¶
func (*Builder) BoolAttr ¶
func (b *Builder) BoolAttr(name string) BooleanAttribute
func (*Builder) CrossOrigin ¶
func (*Builder) DangerousInnerHTML ¶
DangerousInnerHTML returns an InnerHTML definition.
func (*Builder) Description ¶
func (*Builder) MetaCharset ¶
func (*Builder) MetaNameContent ¶
func (*Builder) MetaPropertyContent ¶
func (*Builder) SelfClosing ¶
func (b *Builder) SelfClosing() SelfClosing
SelfClosing returns a SelfClosing(true) definition.
func (*Builder) TextContent ¶
func (b *Builder) TextContent(content string) TextContent
TextContent returns a TextContent definition.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func (*Renderer) InitDedupeRules ¶
type SelfClosing ¶
type SelfClosing bool
func (SelfClosing) Type ¶
func (SelfClosing) Type() element_def_kind
type TextContent ¶
type TextContent string
func (TextContent) Type ¶
func (TextContent) Type() element_def_kind
Click to show internal directories.
Click to hide internal directories.