HTML Embedded in Haskell.
Here's what it looks like:
import H2tml.Prelude
main :: IO()
main = writeFile "h2tml.html" (
render( boilerplate_
"H2TML"
[
h1_ "H2tml",
children_
(p_ "Embedded HTML Language in Haskell inspired from book: ")
[
(a_
"Learn Haskell by building a blog generator"
[attribute_ href_ "https://lhbg-book.link/"]
)
]
]
)
)
More examples can be found here.
To write type safe and declarative HTML.
Learn Haskell by building a blog generator.
Setup Haskell if you don't already have it and then run: runghc [ANY_EXAMPLE_FILE]
or ghc [ANY_EXAMPLE_FILE]
to compile to native executable.