Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data App = App {}
- data AppMessage = MsgHello {
- type Handler = HandlerFor App
- type Widget = WidgetFor App ()
- resourcesApp :: [ResourceTree String]
- type AppRoute = Route App
- type Form x = Html -> MForm (HandlerFor App) (FormResult x, Widget)
- getExtra :: Handler Extra
- data ViewData = VD {}
- nullviewdata :: ViewData
- viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewData
- getViewData :: Handler ViewData
- getLastMessage :: Handler (Maybe Html)
- addform :: Text -> ViewData -> HtmlUrl AppRoute
- journalselect :: [FilePath] -> HtmlUrl AppRoute
- journalradio :: [FilePath] -> 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
type Handler = HandlerFor App Source #
type Form x = Html -> MForm (HandlerFor App) (FormResult x, Widget) Source #
getExtra :: Handler Extra Source #
Get the Extra
value, used to hold data from the settings.yml file.
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.
getLastMessage :: Handler (Maybe Html) Source #
Get the message that was set by the last request, in a referentially transparent manner (allowing multiple reads).