-
Notifications
You must be signed in to change notification settings - Fork 0
/
flamethrower.cabal
46 lines (43 loc) · 1.58 KB
/
flamethrower.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: flamethrower
version: 0.0.5.1
synopsis: A template engine for HTML
description:
Flamethrower is a simpler indentation-based template language for HTML.
.
It’s intended to be a port of <https://github.com/charmander/razorleaf 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>
@
homepage: https://charmander.me/flamethrower/
license: MIT
license-file: LICENSE
author: Charmander
maintainer: [email protected]
category: Text, HTML, Web
build-type: Simple
cabal-version: >=1.10
stability: alpha
source-repository head
type: git
location: https://github.com/charmander/flamethrower
library
exposed-modules: Text.Flamethrower, Text.Flamethrower.Escape, Text.Flamethrower.Compiler, Text.Flamethrower.Parser, Text.Flamethrower.Lexer
build-depends: base >=4.7 && <4.8, template-haskell >=2.9 && <2.10, text >=1.2.0.0 && <1.3
default-language: Haskell2010