Safe Haskell | None |
---|---|
Language | Haskell2010 |
support for using HSP+Happstack for rendering HTML
Synopsis
- defaultTemplate :: (XMLGenerator m, EmbedAsChild m headers, EmbedAsChild m body, StringType m ~ Text) => Text -> headers -> body -> m (XMLType m)
Documentation
:: (XMLGenerator m, EmbedAsChild m headers, EmbedAsChild m body, StringType m ~ Text) | |
=> Text | text to use in <title> tag |
-> headers | extra headers to insert in <head> tag. Use |
-> body | content to put between the <body> tags. |
-> m (XMLType m) |
A generic webpage template
Orphan instances
ToMessage XML Source # | |
ToMessage (Maybe XMLMetaData, XML) Source # | |
toContentType :: (Maybe XMLMetaData, XML) -> ByteString # toMessage :: (Maybe XMLMetaData, XML) -> ByteString # toResponse :: (Maybe XMLMetaData, XML) -> Response # |