headels

package
v0.83.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr struct {
	// contains filtered or unexported fields
}

func (Attr) GetType

func (Attr) GetType() htmlutilType

func (*Attr) KnownSafe

func (a *Attr) KnownSafe() *Attr

type BooleanAttribute

type BooleanAttribute string

func (BooleanAttribute) GetType

func (BooleanAttribute) GetType() htmlutilType

type HeadEls

type HeadEls struct {
	// contains filtered or unexported fields
}

func FromRaw

func FromRaw(els []*htmlutil.Element) *HeadEls

func New

func New() *HeadEls

func (*HeadEls) Add

func (h *HeadEls) Add(defs ...typeInterface)

func (*HeadEls) AddElements added in v0.83.0

func (h *HeadEls) AddElements(other *HeadEls)

func (*HeadEls) As added in v0.83.0

func (h *HeadEls) As(as string) *Attr

func (*HeadEls) Attr

func (h *HeadEls) Attr(name, value string) *Attr

func (*HeadEls) BoolAttr added in v0.83.0

func (h *HeadEls) BoolAttr(name string) BooleanAttribute

func (*HeadEls) Charset added in v0.83.0

func (h *HeadEls) Charset(charset string) *Attr

func (*HeadEls) Collect

func (h *HeadEls) Collect() []*htmlutil.Element

func (*HeadEls) Content

func (h *HeadEls) Content(content string) *Attr

func (*HeadEls) CrossOrigin added in v0.83.0

func (h *HeadEls) CrossOrigin(crossOrigin string) *Attr

func (*HeadEls) DangerousInnerHTML added in v0.83.0

func (h *HeadEls) DangerousInnerHTML(content string) InnerHTML

func (*HeadEls) Description

func (h *HeadEls) Description(description string)

func (*HeadEls) Href

func (h *HeadEls) Href(href string) *Attr
func (h *HeadEls) Link(defs ...typeInterface)

func (*HeadEls) Meta

func (h *HeadEls) Meta(defs ...typeInterface)

func (*HeadEls) MetaNameContent added in v0.83.0

func (h *HeadEls) MetaNameContent(name, content string)

func (*HeadEls) MetaPropertyContent added in v0.83.0

func (h *HeadEls) MetaPropertyContent(property, content string)

func (*HeadEls) Name

func (h *HeadEls) Name(name string) *Attr

func (*HeadEls) Property

func (h *HeadEls) Property(property string) *Attr

func (*HeadEls) Rel

func (h *HeadEls) Rel(rel string) *Attr

func (*HeadEls) Script added in v0.83.0

func (h *HeadEls) Script(defs ...typeInterface)

func (*HeadEls) SelfClosing added in v0.83.0

func (h *HeadEls) SelfClosing() SelfClosing

func (*HeadEls) Src added in v0.83.0

func (h *HeadEls) Src(src string) *Attr

func (*HeadEls) Style added in v0.83.0

func (h *HeadEls) Style(defs ...typeInterface)

func (*HeadEls) TextContent added in v0.83.0

func (h *HeadEls) TextContent(content string) TextContent

func (*HeadEls) Title

func (h *HeadEls) Title(title string)

func (*HeadEls) Type added in v0.83.0

func (h *HeadEls) Type(type_ string) *Attr

type InnerHTML

type InnerHTML string

func (InnerHTML) GetType

func (InnerHTML) GetType() htmlutilType

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(dataAttribute string) *Instance

func (*Instance) InitUniqueRules

func (inst *Instance) InitUniqueRules(e *HeadEls)

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 SortedAndPreEscapedHeadEls

type SortedAndPreEscapedHeadEls struct {
	Title *htmlutil.Element
	Meta  []*htmlutil.Element
	Rest  []*htmlutil.Element
}

type Tag

type Tag string

func (Tag) GetType

func (Tag) GetType() htmlutilType

type TextContent

type TextContent string

func (TextContent) GetType

func (TextContent) GetType() htmlutilType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL