1
0
html/readme.md

38 lines
581 B
Markdown
Raw Normal View History

2025-10-07 03:01:25 +02:00
# HTML
2025-10-07 19:45:19 +02:00
Package html provides functions for programmatically composing and rendering HTML documents, fragments and templates.
2025-10-07 03:01:25 +02:00
2025-10-07 19:48:02 +02:00
Docs:
- https://godocs.io/code.squareroundforest.org/arpio/html
- [lib.go](lib.go)
2025-10-07 17:22:48 +02:00
Example:
```
package main
import (
"os"
"code.squareroundforest.org/arpio/html"
. "code.squareroundforest.org/arpio/html/tag"
)
func main() {
html.RenderIndent(
os.Stdout,
html.Indent(),
2025-10-07 17:24:38 +02:00
Doctype("html"),
2025-10-07 17:22:48 +02:00
Html(
Head(Title("Hello, world!")),
Body(
H1("Hello, world!"),
P("This a sample HTML page."),
),
),
)
}
```
2025-10-07 19:44:23 +02:00
*Made in Berlin, DE*