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

Safe HaskellNone
LanguageHaskell98

Text.Hamlet.RT

Contents

Description

Provides functionality for runtime Hamlet templates. Please use Text.Hamlet.Runtime instead.

Synopsis

Public API

newtype HamletRT Source #

Constructors

HamletRT [SimpleDoc] 

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

renderHamletRT :: MonadThrow m => HamletRT -> HamletMap url -> UrlRenderer url -> m Html Source #

renderHamletRT' Source #

Arguments

:: MonadThrow m 
=> Bool

should embeded template (via ^{..}) be plain Html or actual templates?

-> HamletRT 
-> HamletMap url 
-> (url -> [(Text, Text)] -> Text) 
-> m Html