Skip to content

Hasnep/roc-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Roc HTML

A library to create HTML in Roc.

Example

This Roc code:

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):

<!doctype html>
<html>
  <body>
    <h1>Roc</h1>
    <p>You should really check out <a href="https://roc-lang.org/">Roc</a>!</p>
  </body>
</html>

Licence

This repository is released under the UPL licence and was mostly written by Brian Carroll. Thanks, Brian!

About

๐ŸŒ A library to create HTML in Roc

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy