https://github.com/hasnep/roc-html
🌐 A library to create HTML in Roc
https://github.com/hasnep/roc-html
html roc roc-lang
Last synced: 3 months ago
JSON representation
🌐 A library to create HTML in Roc
- Host: GitHub
- URL: https://github.com/hasnep/roc-html
- Owner: Hasnep
- License: upl-1.0
- Created: 2023-05-31T00:56:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-30T14:54:51.000Z (7 months ago)
- Last Synced: 2026-01-01T04:21:13.142Z (6 months ago)
- Topics: html, roc, roc-lang
- Language: Roc
- Homepage: https://hasnep.github.io/roc-html
- Size: 71.3 KB
- Stars: 28
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roc HTML
A library to create HTML in Roc.
## Example
This Roc code:
```roc
Html.html [] [
Html.body [] [
Html.h1 [] [Html.text "Roc"],
Html.p [] [
Html.text "You should really check out ",
Html.a [Attribute.href "https://roc-lang.org/"] [Html.text "Roc"],
Html.text "!",
]
]
] |> Html.render
```
Returns this HTML (give or take a little formatting):
```html
Roc
You should really check out Roc!
```
## Licence
This repository is released under the [UPL licence](./LICENCE) and was mostly written by [Brian Carroll](https://github.com/brian-carroll/). Thanks, Brian!