Safe Haskell | None |
---|
Web handler utilities.
Documentation
A bundle of data useful for hledger-web request handlers and templates.
VD | |
|
nullviewdata :: ViewDataSource
Make a default ViewData, using day 0 as today's date.
viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewDataSource
Make a ViewData using the given date and request parameters, and defaults elsewhere.
getViewData :: Handler ViewDataSource
Gather data used by handlers and templates in the current request.
getMessageOr :: Maybe String -> Handler (Maybe Html)Source
Get the message set by the last request, or the newer message provided, if any.
dayToJsTimestamp :: Day -> IntegerSource