Safe Haskell | None |
---|
- type Html = Markup
- shamlet :: QuasiQuoter
- shamletFile :: FilePath -> Q Exp
- xshamlet :: QuasiQuoter
- xshamletFile :: FilePath -> Q Exp
- type HtmlUrl url = Render url -> Html
- hamlet :: QuasiQuoter
- hamletFile :: FilePath -> Q Exp
- xhamlet :: QuasiQuoter
- xhamletFile :: FilePath -> Q Exp
- type HtmlUrlI18n msg url = Translate msg -> Render url -> Html
- ihamlet :: QuasiQuoter
- ihamletFile :: FilePath -> Q Exp
- class ToAttributes a where
- toAttributes :: a -> [(Text, Text)]
- data HamletSettings = HamletSettings {
- hamletDoctype :: String
- hamletNewlines :: NewlineStyle
- hamletCloseStyle :: String -> CloseStyle
- hamletDoctypeNames :: [(String, String)]
- data NewlineStyle
- hamletWithSettings :: Q HamletRules -> HamletSettings -> QuasiQuoter
- hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q Exp
- defaultHamletSettings :: HamletSettings
- xhtmlHamletSettings :: HamletSettings
- data Env = Env {}
- data HamletRules = HamletRules {}
- hamletRules :: Q HamletRules
- htmlRules :: Q HamletRules
Plain HTML
shamletFile :: FilePath -> Q ExpSource
xshamletFile :: FilePath -> Q ExpSource
Hamlet
type HtmlUrl url = Render url -> HtmlSource
A function generating an Html
given a URL-rendering function.
hamletFile :: FilePath -> Q ExpSource
xhamletFile :: FilePath -> Q ExpSource
I18N Hamlet
type HtmlUrlI18n msg url = Translate msg -> Render url -> HtmlSource
A function generating an Html
given a message translator and a URL rendering function.
ihamletFile :: FilePath -> Q ExpSource
Type classes
class ToAttributes a whereSource
Convert some value to a list of attribute pairs.
toAttributes :: a -> [(Text, Text)]Source
ToAttributes [(String, String)] | |
ToAttributes [(Text, Text)] | |
ToAttributes (String, String) | |
ToAttributes (Text, Text) |
Internal, for making more
data HamletSettings Source
Settings for parsing of a hamlet document.
HamletSettings | |
|
data NewlineStyle Source
NoNewlines | never add newlines |
NewlinesText | add newlines between consecutive text lines |
AlwaysNewlines | add newlines everywhere |
DefaultNewlineStyle |
hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q ExpSource
defaultHamletSettings :: HamletSettingsSource
Defaults settings: HTML5 doctype and HTML-style empty tags.
data HamletRules Source