The hamlet package

[Tags: deprecated, library, mit]

Deprecated in favor of shakespeare

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.

Here is a quick overview of hamlet html. Due to haddock escaping issues, we can't properly show variable insertion, but we are still going to show some conditionals. Please see http:docs.yesodweb.combooktemplates for a thorough description

 !!!
 <html
     <head
         <title>Hamlet Demo
     <body
         <h1>Information on John Doe
         <h2
             $if isMarried person
                 Married
             $else
                 Not married

Properties

Versions0.0.0, 0.0.1, 0.0.2, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.3.1, 0.3.0, 0.3.1, 0.3.1.1, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.0.1, 0.5.0.2, 0.5.1, 0.5.1.1, 0.5.1.2, 0.6.0, 0.6.0.1, 0.6.0.2, 0.6.0.3, 0.6.1, 0.6.1.1, 0.6.1.2, 0.7.0, 0.7.0.1, 0.7.0.2, 0.7.1, 0.7.2, 0.7.2.1, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.8.2.1, 0.9.0, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.10.7, 0.10.7.1, 0.10.8, 0.10.9.1, 1.0.0, 1.0.1, 1.0.1.1, 1.0.1.2, 1.0.1.3, 1.0.1.4, 1.1.0, 1.1.0.1, 1.1.0.2, 1.1.0.3, 1.1.1, 1.1.1.1, 1.1.2, 1.1.3, 1.1.3.1, 1.1.4, 1.1.5, 1.1.6, 1.1.6.1, 1.1.6.2, 1.1.6.3, 1.1.6.4, 1.1.7, 1.1.7.1, 1.1.7.2, 1.1.7.3, 1.1.7.4, 1.1.7.5, 1.1.7.6, 1.1.7.7, 1.1.8, 1.1.8.1, 1.1.9, 1.1.9.1, 1.1.9.2, 1.2.0
Dependenciesbase (==4.*), blaze-builder (==0.2.*), blaze-html (==0.4.*), bytestring (==0.9.*), containers (>=0.2 && <0.5), failure (==0.1.*), json-enumerator (==0.0.*), json-types (==0.1.*), parsec (>=2 && <4), template-haskell, text (>=0.7 && <0.12)
LicenseBSD3
AuthorMichael Snoyman <michael@snoyman.com>
MaintainerMichael Snoyman <michael@snoyman.com>
StabilityStable
CategoryWeb, Yesod
Home pagehttp://docs.yesodweb.com/
Source repositoryhead: git clone git://github.com/snoyberg/hamlet.git
Executablesruntests
Upload dateWed Mar 23 21:32:20 UTC 2011
Uploaded byMichaelSnoyman
DistributionsDebian:1.1.7.1, Fedora:1.1.7.1, FreeBSD:1.1.7.1, NixOS:1.1.9.2
Downloads17349 total (2384 in last 30 days)

Modules

Flags

NameDescriptionDefault
testBuild the executable to run unit testsDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees