yesod-0.4.0.3: Creation of type-safe, RESTful web applications.

Yesod.Hamlet

Contents

Synopsis

Hamlet library

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

Constructors

PageContent 

Fields

pageTitle :: Html ()
 
pageHead :: Hamlet url
 
pageBody :: Hamlet url