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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 && <4.8), template-haskell (>=2.9 && <2.10), text (>=1.2.0.0 && <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 2014-12-05T21:45:25Z
Distributions NixOS:0.0.5.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 8300 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]