The latest version of hamlet is 1.2.0-0.

hamlet

Version 0.7.0.1 revision 0 uploaded by MichaelSnoyman.

Package meta

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]]
Author
Michael Snoyman <michael@snoyman.com>
Bug reports
n/a
Category
Web, Yesod
Copyright
n/a
Homepage
http://docs.yesodweb.com/
Maintainer
Michael Snoyman <michael@snoyman.com>
Package URL
n/a
Stability
Stable

Components