hamlet-0.2.1: Haml-like template files that are compile-time checked

The hamlet package

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/hamlet/ for more details.

As a quick overview, here is a sample Hamlet template:

 !!!
 %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 children.person child
                 %li $child$
         %p
             %a!href=@page.person@ See the page.
         ^footer^

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
Dependenciesbase (4.*), template-haskell, text (≥0.5 & <0.8), web-encodings (≥0.2.4 & <0.3)
LicenseBSD3
AuthorMichael Snoyman <michael@snoyman.com>
MaintainerMichael Snoyman <michael@snoyman.com>
Stabilityunstable
CategoryWeb
Home pagehttp://docs.yesodweb.com/hamlet/
Source repositorygit clone git://github.com/snoyberg/hamlet.git
Executablesruntests
Upload dateSun May 9 19:49:07 UTC 2010
Uploaded byMichaelSnoyman
Built onghc-6.12
DistributionsFedora: 1.1.1, NixOS: 1.1.7.1, Debian: 1.1.1.1, FreeBSD: 1.1.6.3

Modules

Downloads