all repos — gomponents @ 8b43a908820fb8c6b8a0f6d68d11bb2596a9e033

HTML components in pure Go

Add links to godoc (#183) Also add an example for `http.Adapt`. Fixes #182

Markus Wüstenberg
commit

8b43a908820fb8c6b8a0f6d68d11bb2596a9e033

parent

a79e6d9d10099c418846280ae4a4997e82f6efee

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M html/elements.gohtml/elements.go
@@ -1,5 +1,7 @@
// Package html provides common HTML elements and attributes. +// // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements. +// // See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes for a list of attributes. package html
@@ -9,7 +11,7 @@
g "github.com/maragudk/gomponents" ) -// Doctype returns a special kind of Node that prefixes its sibling with the string "<!doctype html>". +// Doctype returns a special kind of [g.Node] that prefixes its sibling with the string "<!doctype html>". func Doctype(sibling g.Node) g.Node { return g.NodeFunc(func(w io.Writer) error { if _, err := w.Write([]byte("<!doctype html>")); err != nil {