Safe Haskell | None |
---|---|
Language | Haskell98 |
- data App = App {}
- data AppMessage = MsgHello {
- type Handler = HandlerT App IO
- type Widget = WidgetT App IO ()
- resourcesApp :: [ResourceTree String]
- type AppRoute = Route App
- type Form x = Html -> MForm (HandlerT App IO) (FormResult x, Widget)
- getExtra :: Handler Extra
- data ViewData = VD {}
- nullviewdata :: ViewData
- viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewData
- getViewData :: Handler ViewData
- getMessageOr :: Maybe String -> Handler (Maybe Html)
- addform :: Text -> ViewData -> HtmlUrl AppRoute
- journalselect :: [(FilePath, String)] -> HtmlUrl AppRoute
Documentation
The site argument for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here.
App | |
|
Creates the route datatype AppRoute. Every valid URL in your
Creates the associated type:
Creates the value resourcesApp which contains information on the
A bundle of data useful for hledger-web request handlers and templates.
VD | |
|
nullviewdata :: ViewData Source
Make a default ViewData, using day 0 as today's date.
viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewData Source
Make a ViewData using the given date and request parameters, and defaults elsewhere.
getViewData :: Handler ViewData Source
Gather data used by handlers and templates in the current request.