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

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^
Modules
show/hideText
Text.Cassius
show/hideText.Hamlet
Text.Hamlet.RT
Text.Julius
Produced by Haddock version 2.6.1