Safe Haskell | None |
---|
Text.Hamlet
- 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 {}
- 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
- ihamletRules :: Q HamletRules
- htmlRules :: Q HamletRules
- data CloseStyle
- = NoClose
- | CloseInside
- | CloseSeparate
Plain HTML
shamletFile :: FilePath -> Q Exp
xshamletFile :: FilePath -> Q Exp
Hamlet
hamletFile :: FilePath -> Q Exp
xhamletFile :: FilePath -> Q Exp
I18N Hamlet
type HtmlUrlI18n msg url = Translate msg -> Render url -> Html
A function generating an Html
given a message translator and a URL rendering function.
ihamletFile :: FilePath -> Q Exp
Type classes
class ToAttributes a where
Convert some value to a list of attribute pairs.
Methods
toAttributes :: a -> [(Text, Text)]
Instances
ToAttributes [(String, String)] | |
ToAttributes [(Text, Text)] | |
ToAttributes (String, String) | |
ToAttributes (Text, Text) |
Internal, for making more
data HamletSettings
Settings for parsing of a hamlet document.
Constructors
HamletSettings | |
Fields
|
data NewlineStyle
Constructors
NoNewlines | never add newlines |
NewlinesText | add newlines between consecutive text lines |
AlwaysNewlines | add newlines everywhere |
DefaultNewlineStyle |
Instances
hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q Exp
defaultHamletSettings :: HamletSettings
Defaults settings: HTML5 doctype and HTML-style empty tags.
data Env
data HamletRules
data CloseStyle
Constructors
NoClose | |
CloseInside | |
CloseSeparate |