shakespeare-2.0.4.1: A toolkit for making compile-time interpolated templates

Safe HaskellNone
LanguageHaskell98

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 :: MonadThrow m => HamletRT -> HamletMap url -> UrlRenderer url -> m Html Source

renderHamletRT' :: MonadThrow m => Bool -> HamletRT -> HamletMap url -> (url -> [(Text, Text)] -> Text) -> m Html Source