Documentation
¶
Overview ¶
Package selection provides experimental selected-partial rendering helpers.
Index ¶
- func FuncMap() template.FuncMap
- func SelectionHTML(ctx ...*partial.RenderContext) template.HTML
- func SelectionHeader(ctx ...*partial.RenderContext) string
- func SelectionIs(values ...string) bool
- func SelectionValue(ctx ...*partial.RenderContext) string
- func Stage() partial.RenderStage
- func WithSelectMap(p *partial.Partial, defaultKey string, partials map[string]*partial.Partial) *partial.Partial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectionHTML ¶
func SelectionHTML(ctx ...*partial.RenderContext) template.HTML
SelectionHTML renders the selected partial for a render context.
go-doc:sig func() html/template.HTML
func SelectionHeader ¶
func SelectionHeader(ctx ...*partial.RenderContext) string
SelectionHeader returns the connector selection header name.
go-doc:sig func() string
func SelectionIs ¶
SelectionIs reports whether the selected key matches any provided value.
go-doc:sig func(values ...string) bool
func SelectionValue ¶
func SelectionValue(ctx ...*partial.RenderContext) string
SelectionValue returns the selected key for a render context.
go-doc:sig func() string
func Stage ¶
func Stage() partial.RenderStage
Stage gives templates the selection helpers, which render selected child partials. They are made only for the templates that call them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.