Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-15T01:32:41.000Z (6 months ago)
- Last Synced: 2024-05-27T12:40:24.308Z (6 months ago)
- Topics: html, roc, roc-lang
- Language: Roc
- Homepage: https://hasnep.github.io/roc-html
- Size: 39.1 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- 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 [Attributes.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!