Documentation
¶
Overview ¶
Package slots provides experimental named regions backed by child partials.
Index ¶
- func FuncMap() template.FuncMap
- func HasSlot(name string, ctx ...*partial.RenderContext) bool
- func Name(p *partial.Partial) string
- func Set(parent *partial.Partial, name string, child *partial.Partial) *partial.Partial
- func Slot(name string, ctx ...*partial.RenderContext) template.HTML
- func Stage() partial.RenderStage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSlot ¶
func HasSlot(name string, ctx ...*partial.RenderContext) bool
HasSlot reports whether a named slot exists in a render context.
go-doc:sig func(string) bool
func Slot ¶
func Slot(name string, ctx ...*partial.RenderContext) template.HTML
Slot renders a named slot from a render context.
go-doc:sig func(string) html/template.HTML
func Stage ¶
func Stage() partial.RenderStage
Stage installs slot helpers bound to the active render context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.