@hackage hamlet0.8.2
Haml-like template files that are compile-time checked
Categories
License
BSD-3-Clause
Maintainer
Michael Snoyman <michael@snoyman.com>
Links
Versions
Deprecated
Dependencies (10)
- 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 Show all…
Dependents (54)
@hackage/yesod-auth-fb, @hackage/yesod-auth-smbclient, @hackage/yesod-tableview, @hackage/yesod-vend, @hackage/hledger, @hackage/yesod-default, Show all…
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