happstack-hamlet-6.1.2: Support for Hamlet HTML templates in Happstack

Happstack.Server.Hamlet

Description

This module provides support for using Hamlet with Happstack. Hamlet provides type-safe HTML generation. More information can be found at http://patch-tag.com/r/mae/happstack/snapshot/current/content/pretty/happstack-hamlet/demo.hs and http://hackage.haskell.org/package/hamlet.

Synopsis

Documentation

hamletToResponseSource

Arguments

:: (url -> [(Text, Text)] -> Text)

function to url values in the template into their String representation

-> Hamlet url

a Hamlet template

-> Response 

turn a Hamlet template into a Happstack Response

Due to changes in Hamlet, this function is now just defined as:

 hamletToResponse showFn hamlet = toResponse $ hamlet showFn

You probably do not need to use this library at all these days.