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
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>

Properties

Versions0.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
Dependenciesbase (==4.7.*), haskell-src-meta (==0.6.*), template-haskell (==2.9.*), text (>=1.1.0.0 && <1.2)
LicenseMIT
AuthorCharmander
Maintainer~@charmander.me
Stabilityalpha
CategoryText, HTML, Web
Home pagehttps://charmander.me/flamethrower/
Source repositoryhead: git clone https://github.com/charmander/flamethrower
Upload dateTue Jul 15 06:25:40 UTC 2014
Uploaded bycharmander
Downloads386 total (82 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees