hamlet: Haml-like template files that are compile-time checked
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
Flags
Name | Description | Default | Type |
---|---|---|---|
blaze_html_0_5 | Use blaze-html 0.5 and blaze-markup 0.5 | Disabled | Automatic |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- hamlet-1.0.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)