hamlet: Haml-like template files that are compile-time checked
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/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
%[email protected]@ See the page.
^footer^
Flags
Automatic Flags
| Name | Description | Default |
|---|---|---|
| buildtests | 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
- hamlet-0.6.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates