Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > 0b8aa0f257818e86a58654531ee2a473 > files > 26

ghc-hamlet-devel-1.0.1.3-1.fc17.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>hamlet-1.0.1.3: Haml-like template files that are compile-time checked</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hamlet-1.0.1.3: Haml-like template files that are compile-time checked</p></div><div id="content"><div id="description" class="doc"><h1>hamlet-1.0.1.3: Haml-like template files that are compile-time checked</h1><p>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 <a href="http://www.yesodweb.com/book/shakespearean-templates">http://www.yesodweb.com/book/shakespearean-templates</a> for more details.
</p><p>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 <a href="http://www.yesodweb.com/book/shakespearean-templates">http://www.yesodweb.com/book/shakespearean-templates</a> for a thorough description
</p><pre> !!!
 &lt;html&gt;
     &lt;head&gt;
         &lt;title&gt;Hamlet Demo
     &lt;body&gt;
         &lt;h1&gt;Information on John Doe
         &lt;h2&gt;
             $if isMarried person
                 Married
             $else
                 Not married
</pre></div><div id="module-list"><p class="caption">Modules</p><ul><li><span id="control.n.1" class="module collapser" onclick="toggleSection('n.1')">Text</span><ul id="section.n.1" class="show"><li><span class="module"><span id="control.n.1.1" class="collapser" onclick="toggleSection('n.1.1')">&nbsp;</span><a href="Text-Hamlet.html">Text.Hamlet</a></span><ul id="section.n.1.1" class="show"><li><span class="module"><a href="Text-Hamlet-RT.html">Text.Hamlet.RT</a></span></li></ul></li></ul></li></ul></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>