happstack-heist-6.0.2: Support for using Heist templates in Happstack

Happstack.Server.Heist

Description

functions for using Heist with Happstack

See the Heist Section of the Happstack Crash Course for detailed documentation:

http://happstack.com/docs/crashcourse/Templates.html#helloheist

Synopsis

Documentation

templateReloader :: (MonadIO m, MonadIO n) => TemplateDirectory m -> n ResponseSource

force a reload of the templates from disk

templateServe :: (ServerMonad m, MonadPlus m, MonadIO m) => TemplateDirectory m -> m ResponseSource

serve the heist templates from the 'TemplateDirectory m'

renderSource

Arguments

:: (MonadPlus m, MonadIO m) 
=> TemplateDirectory m

TemplateDirectory handle

-> ByteString

template name

-> m Response 

render the specified template