-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | 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://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 -- %a!href=@page.person@ See the page. -- ^footer^ --@package hamlet @version 0.3.1 module Text.Hamlet -- | Calls hamletWithSettings with defaultHamletSettings. hamlet :: QuasiQuoter -- | Calls hamletWithSettings using XHTML 1.0 Strict settings. xhamlet :: QuasiQuoter -- | A quasi-quoter that converts Hamlet syntax into a function of form: -- --
-- (url -> String) -> Html ---- -- Please see accompanying documentation for a description of Hamlet -- syntax. hamletWithSettings :: HamletSettings -> QuasiQuoter -- | Settings for parsing of a hamlet document. data HamletSettings HamletSettings :: String -> Bool -> HamletSettings -- | The value to replace a "!!!" with. Do not include the trailing -- newline. hamletDoctype :: HamletSettings -> String -- | True means to close empty tags (eg, img) with a trailing slash, -- ie XML-style empty tags. False uses HTML-style. hamletCloseEmpties :: HamletSettings -> Bool -- | Defaults settings: HTML5 doctype and HTML-style empty tags. defaultHamletSettings :: HamletSettings -- | The core HTML datatype. data Html a :: * -> * -- | An function generating an Html given a URL-rendering function. type Hamlet url = (url -> String) -> Html () -- | Converts a Hamlet to lazy bytestring. renderHamlet :: (url -> String) -> Hamlet url -> ByteString -- | O(n). Render the HTML fragment to lazy ByteString. renderHtml :: Html a -> ByteString -- | Create an HTML snippet from a String without escaping preEscapedString :: String -> Html a -- | Create an HTML snippet from a String. string :: String -> Html a -- | Insert a ByteString. This is an unsafe operation: -- --