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: 2 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 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-09T00:26:46.000Z (2 months ago)
- Last Synced: 2025-05-09T01:27:27.203Z (2 months ago)
- Topics: html, roc, roc-lang
- Language: Roc
- Homepage: https://hasnep.github.io/roc-html
- Size: 59.6 KB
- Stars: 17
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- roc-awesome - Hasnep/roc-html
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!