The flamethrower package

[ Tags: 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 (flamethrower)
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>


Dependencies base (==4.7.*), template-haskell (==2.9.*), text (>= && <1.3) [details]
License MIT
Author Charmander
Category Text, HTML, Web
Home page
Source repo head: git clone
Uploaded Fri Dec 5 21:45:25 UTC 2014 by charmander
Distributions NixOS:
Downloads 3809 total (60 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees