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

import Flamethrower

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

main = putStrLn (render "world")

-- <p id="greeting">Hello, <em>world</em>!</p>
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.6.*), haskell-src-meta (==0.6.*), template-haskell (==2.8.*) [details]
License MIT
Author Charmander
Maintainer campersander@gmail.com
Category Text, HTML, Web
Home page https://charmander.me/flamethrower/
Source repo head: git clone https://github.com/charmander/flamethrower
Uploaded by charmander at Mon Jan 13 17:51:27 UTC 2014
Distributions NixOS:0.0.5.1
Downloads 3903 total (33 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees