hamlet-1.1.6.3: Haml-like template files that are compile-time checked

Safe HaskellNone

Text.Hamlet.RT

Contents

Description

Most everything exported here is exported also by Text.Hamlet. The exceptions to that rule should not be necessary for normal usage.

Synopsis

Public API

newtype HamletRT Source

Constructors

HamletRT [SimpleDoc] 

data HamletData url Source

Constructors

HDHtml Html 
HDUrl url 
HDUrlParams url [(Text, Text)] 
HDTemplate HamletRT 
HDBool Bool 
HDMaybe (Maybe (HamletMap url)) 
HDList [HamletMap url] 

type HamletMap url = [([String], HamletData url)]Source

renderHamletRT :: Failure HamletException m => HamletRT -> HamletMap url -> (url -> [(Text, Text)] -> Text) -> m HtmlSource

renderHamletRT' :: Failure HamletException m => Bool -> HamletRT -> HamletMap url -> (url -> [(Text, Text)] -> Text) -> m HtmlSource