Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoctypeTemplate ¶ added in v0.9.0
type DoctypeTemplate struct {
goht.SlotTemplate
}
Adds a doctype to the top of the page HTML5 doctype is the default
func Doctype ¶
func Doctype() *DoctypeTemplate
Doctype returns a new instance of DoctypeTemplate. Slots: children.
func (*DoctypeTemplate) Slot ¶ added in v0.9.0
func (t *DoctypeTemplate) Slot(name string, templates ...goht.Template) *DoctypeTemplate
Slot sets a named slot for DoctypeTemplate and returns a new instance.
func (*DoctypeTemplate) WithChildren ¶ added in v0.9.0
func (t *DoctypeTemplate) WithChildren(templates ...goht.Template) *DoctypeTemplate
WithChildren sets the "children" slot for DoctypeTemplate.
type HamlDoctypeTemplate ¶ added in v0.9.0
type HamlDoctypeTemplate struct {
goht.SlotTemplate
}
func HamlDoctype ¶ added in v0.6.0
func HamlDoctype() *HamlDoctypeTemplate
HamlDoctype returns a new instance of HamlDoctypeTemplate. Slots: children.
func (*HamlDoctypeTemplate) Slot ¶ added in v0.9.0
func (t *HamlDoctypeTemplate) Slot(name string, templates ...goht.Template) *HamlDoctypeTemplate
Slot sets a named slot for HamlDoctypeTemplate and returns a new instance.
func (*HamlDoctypeTemplate) WithChildren ¶ added in v0.9.0
func (t *HamlDoctypeTemplate) WithChildren(templates ...goht.Template) *HamlDoctypeTemplate
WithChildren sets the "children" slot for HamlDoctypeTemplate.
type SlimDoctypeTemplate ¶ added in v0.9.0
type SlimDoctypeTemplate struct {
goht.SlotTemplate
}
func SlimDoctype ¶ added in v0.6.0
func SlimDoctype() *SlimDoctypeTemplate
SlimDoctype returns a new instance of SlimDoctypeTemplate. Slots: children.
func (*SlimDoctypeTemplate) Slot ¶ added in v0.9.0
func (t *SlimDoctypeTemplate) Slot(name string, templates ...goht.Template) *SlimDoctypeTemplate
Slot sets a named slot for SlimDoctypeTemplate and returns a new instance.
func (*SlimDoctypeTemplate) WithChildren ¶ added in v0.9.0
func (t *SlimDoctypeTemplate) WithChildren(templates ...goht.Template) *SlimDoctypeTemplate
WithChildren sets the "children" slot for SlimDoctypeTemplate.