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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T12:01:22.000Z (3 months ago)
- Last Synced: 2025-02-11T13:21:46.711Z (3 months ago)
- Topics: html, roc, roc-lang
- Language: Roc
- Homepage: https://hasnep.github.io/roc-html
- Size: 57.6 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- 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!