Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/htmb
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lpil/htmb
- Owner: lpil
- License: apache-2.0
- Created: 2023-08-12T11:14:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-31T12:53:56.000Z (11 months ago)
- Last Synced: 2024-05-01T23:05:02.543Z (7 months ago)
- Language: Gleam
- Size: 132 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-gleam - htmb - [📚](https://hexdocs.pm/htmb/) - A tiny HTML builder for Gleam (Packages / HTML)
README
# HyperText Markup Builder
[![Package Version](https://img.shields.io/hexpm/v/htmb)](https://hex.pm/packages/htmb)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/htmb/)A tiny HTML builder for Gleam.
```gleam
let html =
h("h1", [], [text("Hello, Joe!")])
|> render
|> string_builder.to_string
assert html == "Hello, Joe!
"
```This package doesn't do much. If you'd like more features, check out these
alternatives:- [Glemplate](https://hex.pm/packages/glemplate)
- [Lustre](https://hex.pm/packages/lustre)
- [Nakai](https://hex.pm/packages/nakai)
- [React Gleam](https://hex.pm/packages/react_gleam)## Installation
```sh
gleam add htmb
```The documentation can be found at .