flamethrower: A template engine for HTML

[ html, library, mit, text, web ] [ Propose Tags ]

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 #-}
{-# LANGUAGE OverloadedStrings #-}

import Text.Flamethrower
import Text.Flamethrower.Escape
import Data.Text
import qualified Data.Text.IO

render name = [flamethrower|
p id: "greeting"
	"Hello, "
	em "#{name}"

main = Data.Text.IO.putStrLn $ render "world"

-- <p id="greeting">Hello, <em>world</em>!</p>
Versions [faq],,,,,,,,,,,
Dependencies base (==4.7.*), haskell-src-meta (==0.6.*), template-haskell (==2.9.*), text (>= && <1.3) [details]
License MIT
Author Charmander
Maintainer ~@charmander.me
Category Text, HTML, Web
Home page https://charmander.me/flamethrower/
Source repo head: git clone https://github.com/charmander/flamethrower
Uploaded by charmander at Thu Nov 13 20:10:43 UTC 2014
Distributions NixOS:
Downloads 4426 total (135 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-12 [all 6 reports]


  • Text
    • Text.Flamethrower
      • Text.Flamethrower.Escape


Maintainer's Corner

For package maintainers and hackage trustees