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
- templateReloader :: (MonadIO m, MonadIO n) => TemplateDirectory m -> n Response
- templateServe :: (ServerMonad m, MonadPlus m, MonadIO m) => TemplateDirectory m -> m Response
- render :: (MonadPlus m, MonadIO m) => TemplateDirectory m -> ByteString -> m Response
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'
Arguments
:: (MonadPlus m, MonadIO m) | |
=> TemplateDirectory m |
|
-> ByteString | template name |
-> m Response |
render the specified template