| script | ||
| tag | ||
| .gitignore | ||
| eq_test.go | ||
| eq.go | ||
| escape_test.go | ||
| escape.go | ||
| go.mod | ||
| go.sum | ||
| indent.go | ||
| lib_test.go | ||
| lib.go | ||
| Makefile | ||
| print_test.go | ||
| promote-to-tags.txt | ||
| query_test.go | ||
| query.go | ||
| readme.md | ||
| render_test.go | ||
| render.go | ||
| tag.block.txt | ||
| tag.inline.txt | ||
| tag.inlinechildren.txt | ||
| tag.preformatted.txt | ||
| tag.script.txt | ||
| tag.void.block.txt | ||
| tag.void.inline.txt | ||
| validate_test.go | ||
| validate.go | ||
| wrap_test.go | ||
| wrap.go | ||
| writer_test.go | ||
HTML
Package html provides functions for programmatically composing and rendering HTML documents, fragments and templates.
Docs:
Example:
package main
import (
"os"
"code.squareroundforest.org/arpio/html"
. "code.squareroundforest.org/arpio/html/tag"
)
func main() {
html.Write(
os.Stdout,
html.Indent(),
Doctype("html"),
Html(
Head(
Title("Hello, world!"),
Meta("charset", "utf-8"),
),
Body(
H1("Hello, world!"),
P("This is a sample HTML page."),
),
),
)
}
Made in Berlin, DE