- module Text.Hamlet
- hamletToContent :: Hamlet (Route master) -> GHandler sub master Content
- hamletToRepHtml :: Hamlet (Route master) -> GHandler sub master RepHtml
- data PageContent url = PageContent {}
Hamlet library
module Text.Hamlet
Convert to something displayable
hamletToContent :: Hamlet (Route master) -> GHandler sub master ContentSource
Converts the given Hamlet template into Content
, which can be used in a
Yesod Response
.
hamletToRepHtml :: Hamlet (Route master) -> GHandler sub master RepHtmlSource
Wraps the Content
generated by hamletToContent
in a RepHtml
.
Page templates
data PageContent url Source
Content for a web page. By providing this datatype, we can easily create generic site templates, which would have the type signature:
PageContent url -> Hamlet url