The flamethrower package

[Tags:library, mit]

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>

Properties

Versions 0.0.1.0, 0.0.1.1, 0.0.1.2, 0.0.1.3, 0.0.2.0, 0.0.2.1, 0.0.3.0, 0.0.3.1, 0.0.4.0, 0.0.4.1, 0.0.5.0, 0.0.5.1
Dependencies base (==4.7.*), template-haskell (==2.9.*), text (>=1.2.0.0 && <1.3) [details]
License MIT
Author Charmander
Maintainer ~@charmander.me
Stability alpha
Category Text, HTML, Web
Home page https://charmander.me/flamethrower/
Source repository head: git clone https://github.com/charmander/flamethrower
Uploaded Fri Dec 5 21:45:25 UTC 2014 by charmander
Distributions NixOS:0.0.5.1
Downloads 1945 total (39 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees