HyperText Markup Builder
A tiny HTML builder for Gleam.
let html =
h("h1", [], [text("Hello, Joe!")])
|> render
|> string_tree.to_string
assert html == "<h1>Hello, Joe!</h1>"
This package doesn’t do much. If you’d like more features, check out these alternatives:
Installation
gleam add htmb
The documentation can be found at https://hexdocs.pm/htmb.