Documentation ¶
Index ¶
- func Fragment(children ...htmlgo.HTMLComponent) htmlgo.HTMLComponents
- func FromTemplate(name string, tpl string, data interface{}) htmlgo.HTMLComponent
- func Handler(comp htmlgo.HTMLComponent) http.Handler
- func Render(w http.ResponseWriter, r *http.Request, comp htmlgo.HTMLComponent)
- type PartialComp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fragment ¶
func Fragment(children ...htmlgo.HTMLComponent) htmlgo.HTMLComponents
func FromTemplate ¶
func FromTemplate(name string, tpl string, data interface{}) htmlgo.HTMLComponent
Wraps a go template in a HTMLComponent
func Render ¶
func Render(w http.ResponseWriter, r *http.Request, comp htmlgo.HTMLComponent)
Types ¶
type PartialComp ¶
func AsPartial ¶
func AsPartial(comp htmlgo.HTMLComponent, ctx context.Context) PartialComp
Makes a htmlgo.HTMLComponent callable in a html/template
Click to show internal directories.
Click to hide internal directories.