@hackage flamethrower0.0.1.0

A template engine for HTML

Flamethrower is a simpler indentation-based template language for HTML.

It’s intended to be a port of Razor Leaf, but it has quite a ways to go before reaching that status.

(-# LANGUAGE QuasiQuotes #-) -- Parentheses here should be curly braces

import Flamethrower

render name = [flamethrower|
p id: "greeting"
    "Hello, "
    em "#(name)" # Parentheses here should be curly braces
    "!"
|]

main = putStrLn (render "world")

-- <p id="greeting">Hello, <em>world</em>!</p>