Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 0ec9d8e04c6b78d98ce34d1036640fe3 > files > 85

ghc-hamlet-devel-0.8.2.1-2.fc14.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>hamlet-0.8.2.1: Haml-like template files that are compile-time checked</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>hamlet-0.8.2.1: Haml-like template files that are compile-time checked</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section1"
>hamlet-0.8.2.1: Haml-like template files that are compile-time checked</TD
></TR
><TR
><TD CLASS="doc"
><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://docs.yesodweb.com/book/hamlet/"
>http://docs.yesodweb.com/book/hamlet/</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 http:<EM
></EM
>docs.yesodweb.com<EM
>book</EM
>templates 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
></TD
></TR
><TR
><TD CLASS="section1"
>Modules</TD
></TR
><TR
><TD
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0"
><TR
><TD STYLE="width: 50em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:0')" ALT="show/hide"
>Text</TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:0" STYLE="display:block;"
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Cassius.html"
>Text.Cassius</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Coffee.html"
>Text.Coffee</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="width: 48em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:1')" ALT="show/hide"
><A HREF="Text-Hamlet.html"
>Text.Hamlet</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:1" STYLE="display:block;"
><TR
><TD STYLE="padding-left: 1.25em;width: 46em"
><A HREF="Text-Hamlet-NonPoly.html"
>Text.Hamlet.NonPoly</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 46em"
><A HREF="Text-Hamlet-RT.html"
>Text.Hamlet.RT</A
></TD
><TD
></TD
><TD
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Julius.html"
>Text.Julius</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Lucius.html"
>Text.Lucius</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Romeo.html"
>Text.Romeo</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 48em"
><A HREF="Text-Shakespeare.html"
>Text.Shakespeare</A
></TD
><TD
></TD
><TD
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>