Deprecated

In favour of

hamlet

Haml-like template files that are compile-time checked (deprecated)

http://www.yesodweb.com/book/shakespearean-templates

LTS Haskell 23.1:1.2.0
Stackage Nightly 2024-12-22:1.2.0
Latest on Hackage:1.2.0

See all snapshots hamlet appears in

MIT licensed and maintained by Michael Snoyman
This version can be pinned in stack with:hamlet-1.2.0@sha256:1b009261b10b6100ec4cd89fb780f1c4dbed5dc70009247e8f2fbabb5dc7c34c,1573

Module documentation for 1.2.0

There are no documented modules for this package.

Depends on 2 packages(full list with versions):

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://www.yesodweb.com/book/shakespearean-templates 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://www.yesodweb.com/book/shakespearean-templates for a thorough description

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