hamlet-0.7.0.2: hamlet.cabal
name: hamlet
version: 0.7.0.2
license: BSD3
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>
synopsis: Haml-like template files that are compile-time checked
description:
Hamlet gives you a type-safe tool for generating HTML code. It works via Quasi-Quoting, and generating extremely efficient output code. The syntax is white-space sensitive, and it helps you avoid cross-site scripting issues and 404 errors. Please see the documentation at <http://docs.yesodweb.com/book/hamlet/> for more details.
.
As a quick overview, here is a sample Hamlet template (note that, due to some issues with Haddock, I have replaced braces ({ and }) with double-square-brackets ([[ and ]])):
.
> !!!
> <html
> <head
> <title>Hamlet Demo
> <body
> <h1>Information on #[[name person]]
> <p>#[[name person]] is #[[age person]] years old.
> <h2
> $if isMarried person
> Married
> $else
> Not married
> <ul
> $forall child <- children person
> <li>#[[child]]
> <p
> <a href=@[[page person]]>See the page.
> ^[[footer]]
category: Web, Yesod
stability: Stable
cabal-version: >= 1.6
build-type: Simple
homepage: http://docs.yesodweb.com/
flag test
description: Build the executable to run unit tests
default: False
library
build-depends: base >= 4 && < 5
, bytestring >= 0.9 && < 0.10
, template-haskell
, blaze-html >= 0.4 && < 0.5
, parsec >= 2 && < 4
, failure >= 0.1 && < 0.2
, text >= 0.7 && < 0.12
, containers >= 0.2 && < 0.5
, json-types >= 0.1 && < 0.2
, json-enumerator >= 0.0 && < 0.1
, blaze-builder >= 0.2 && < 0.3
exposed-modules: Text.Hamlet
Text.Hamlet.RT
Text.Cassius
Text.Julius
other-modules: Text.Hamlet.Parse
Text.Hamlet.Quasi
Text.Hamlet.Debug
Text.Shakespeare
ghc-options: -Wall
executable runtests
if flag(test)
Buildable: True
cpp-options: -DTEST
build-depends: QuickCheck >= 2 && < 3,
HUnit,
test-framework-hunit,
test-framework
else
Buildable: False
main-is: runtests.hs
executable hamlet6to7
cpp-options: -DHAMLET6TO7
build-depends: QuickCheck >= 2 && < 3
main-is: hamlet6to7.hs
Other-Modules: Old.Utf8
Old.Cassius
Old.Hamlet
Old.Julius
source-repository head
type: git
location: git://github.com/snoyberg/hamlet.git