Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 [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!