-- 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/book/hamlet/ 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:docs.yesodweb.combooktemplates for a thorough -- description -- --
--   !!!
--   <html>
--       <head>
--           <title>Hamlet Demo
--       <body>
--           <h1>Information on John Doe
--           <h2>
--               $if isMarried person
--                   Married
--               $else
--                   Not married
--   
@package hamlet @version 0.10.2 module Text.Hamlet -- | Simplification of the HtmlM datatype. type Html = HtmlM () shamlet :: QuasiQuoter shamletFile :: FilePath -> Q Exp xshamlet :: QuasiQuoter xshamletFile :: FilePath -> Q Exp -- | A function generating an Html given a URL-rendering function. type HtmlUrl url = Render url -> Html hamlet :: QuasiQuoter hamletFile :: FilePath -> Q Exp xhamlet :: QuasiQuoter xhamletFile :: FilePath -> Q Exp -- | A function generating an Html given a message translator and a -- URL rendering function. type HtmlUrlI18n msg url = Translate msg -> Render url -> Html ihamlet :: QuasiQuoter ihamletFile :: FilePath -> Q Exp hamletWithSettings :: Q HamletRules -> HamletSettings -> QuasiQuoter hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q Exp -- | Defaults settings: HTML5 doctype and HTML-style empty tags. defaultHamletSettings :: HamletSettings xhtmlHamletSettings :: HamletSettings data Env Env :: Maybe ((Exp -> Q Exp) -> Q Exp) -> Maybe ((Exp -> Q Exp) -> Q Exp) -> Env urlRender :: Env -> Maybe ((Exp -> Q Exp) -> Q Exp) msgRender :: Env -> Maybe ((Exp -> Q Exp) -> Q Exp) data HamletRules HamletRules :: Exp -> ((Env -> Q Exp) -> Q Exp) -> (Env -> Exp -> Q Exp) -> HamletRules hrFromHtml :: HamletRules -> Exp hrWithEnv :: HamletRules -> (Env -> Q Exp) -> Q Exp hrEmbed :: HamletRules -> Env -> Exp -> Q Exp