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

[ deprecated, library, mit, web, yesod ] [ Propose Tags ]
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.com/book/templates for a thorough description

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

Flags

Manual Flags

NameDescriptionDefault
test

Build the executable to run unit tests

Disabled

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.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
Dependencies base (>=4 && <5), blaze-builder (>=0.2 && <0.4), blaze-html (>=0.4 && <0.5), bytestring (>=0.9 && <0.10), containers (>=0.2 && <0.5), failure (>=0.1 && <0.2), parsec (>=2 && <4), process (>=1.0 && <1.1), template-haskell, text (>=0.7 && <0.12) [details]
License BSD-3-Clause
Author Michael Snoyman <michael@snoyman.com>
Maintainer Michael Snoyman <michael@snoyman.com>
Revised Revision 1 made by HerbertValerioRiedel at 2019-02-03T19:49:41Z
Category Web, Yesod
Home page http://docs.yesodweb.com/
Source repo head: git clone git://github.com/snoyberg/hamlet.git
Uploaded by MichaelSnoyman at 2011-04-19T21:43:31Z
Distributions LTSHaskell:1.2.0, NixOS:1.2.0, Stackage:1.2.0
Reverse Dependencies 37 direct, 290 indirect [details]
Downloads 99127 total (212 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]