hamlet-0.8.2.1: Haml-like template files that are compile-time checkedSource codeContentsIndex
Text.Hamlet.NonPoly
Contents
Plain HTML
Hamlet
I18N Hamlet
Internal, for making more
Synopsis
type Html = HtmlM ()
html :: QuasiQuoter
htmlFile :: FilePath -> Q Exp
type Hamlet url = Render url -> Html
hamlet :: QuasiQuoter
hamletFile :: FilePath -> Q Exp
type IHamlet 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
defaultHamletSettings :: HamletSettings
data Env = Env {
urlRender :: Maybe ((Exp -> Q Exp) -> Q Exp)
msgRender :: Maybe ((Exp -> Q Exp) -> Q Exp)
}
data HamletRules = HamletRules {
hrFromHtml :: Exp
hrWithEnv :: (Env -> Q Exp) -> Q Exp
hrEmbed :: Env -> Exp -> Q Exp
}
Plain HTML
type Html = HtmlM ()Source
Simplification of the HtmlM datatype.
html :: QuasiQuoterSource
htmlFile :: FilePath -> Q ExpSource
Hamlet
type Hamlet url = Render url -> HtmlSource
A function generating an Html given a URL-rendering function.
hamlet :: QuasiQuoterSource
hamletFile :: FilePath -> Q ExpSource
I18N Hamlet
type IHamlet msg url = Translate msg -> Render url -> HtmlSource
A function generating an Html given a message translator and a URL rendering function.
ihamlet :: QuasiQuoterSource
ihamletFile :: FilePath -> Q ExpSource
Internal, for making more
hamletWithSettings :: Q HamletRules -> HamletSettings -> QuasiQuoterSource
hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q ExpSource
defaultHamletSettings :: HamletSettingsSource
Defaults settings: HTML5 doctype and HTML-style empty tags.
data Env Source
Constructors
Env
urlRender :: Maybe ((Exp -> Q Exp) -> Q Exp)
msgRender :: Maybe ((Exp -> Q Exp) -> Q Exp)
data HamletRules Source
Constructors
HamletRules
hrFromHtml :: Exp
hrWithEnv :: (Env -> Q Exp) -> Q Exp
hrEmbed :: Env -> Exp -> Q Exp
Produced by Haddock version 2.6.1