1
0
Go to file
2025-10-11 12:26:13 +02:00
script fix error reporting in generator scripts 2025-10-10 23:14:55 +02:00
tag move title to inlinechildren 2025-10-07 17:20:42 +02:00
.gitignore refactor escaping 2025-10-05 20:06:39 +02:00
eq_test.go test eq 2025-10-06 17:03:52 +02:00
eq.go test eq 2025-10-06 17:03:52 +02:00
escape_test.go test rendering 2025-10-06 00:37:10 +02:00
escape.go test lib 2025-10-06 23:49:11 +02:00
go.mod go mod tidy 2025-10-07 12:51:28 +02:00
go.sum wip 2025-09-11 20:50:00 +02:00
indent.go test rendering 2025-10-06 00:37:10 +02:00
lib_test.go document lib 2025-10-07 02:00:37 +02:00
lib.go update lib docs 2025-10-11 12:26:13 +02:00
Makefile delete coverprofile on clean 2025-10-08 19:04:01 +02:00
print_test.go support reader as content 2025-10-05 21:25:53 +02:00
promote-to-tags.txt render: 2025-10-05 14:27:48 +02:00
query_test.go test rendering 2025-10-06 00:37:10 +02:00
query.go fix merge attributes 2025-10-09 21:39:06 +02:00
readme.md add direct lib doc link 2025-10-07 19:48:02 +02:00
render_test.go test lib 2025-10-06 23:49:11 +02:00
render.go test lib 2025-10-06 23:49:11 +02:00
tag.block.txt move title to inlinechildren 2025-10-07 17:20:42 +02:00
tag.inline.txt review tags for inline children 2025-10-07 02:49:35 +02:00
tag.inlinechildren.txt move title to inlinechildren 2025-10-07 17:20:42 +02:00
tag.script.txt test rendering 2025-10-06 00:37:10 +02:00
tag.void.block.txt test rendering 2025-10-06 00:37:10 +02:00
tag.void.inline.txt review tags for inline children 2025-10-07 02:49:35 +02:00
validate_test.go test lib 2025-10-06 23:49:11 +02:00
validate.go test lib 2025-10-06 23:49:11 +02:00
wrap_test.go test rendering 2025-10-06 00:37:10 +02:00
wrap.go fix wrap flush 2025-10-07 13:08:53 +02:00
writer_test.go support reader as content 2025-10-05 21:25:53 +02:00

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.RenderIndent(
		os.Stdout,
		html.Indent(),
		Doctype("html"),
		Html(
			Head(Title("Hello, world!")),
			Body(
				H1("Hello, world!"),
				P("This a sample HTML page."),
			),
		),
	)
}

Made in Berlin, DE