hledger-web-0.19: A web interface for the hledger accounting tool.

Safe HaskellNone

Handler.Handlers

Contents

Synopsis

GET handlers

getJournalR :: Handler RepHtmlSource

The formatted journal view, with sidebar.

getJournalEntriesR :: Handler RepHtmlSource

The journal entries view, with sidebar.

getJournalEditR :: Handler RepHtmlSource

The journal editform, no sidebar.

getRegisterR :: Handler RepHtmlSource

The main journal/account register view, with accounts sidebar.

helpers

POST handlers

Common page components

Utilities

data ViewData Source

A bundle of data useful for hledger-web request handlers and templates.

Constructors

VD 

Fields

opts :: WebOpts

the command-line options at startup

here :: AppRoute

the current route

msg :: Maybe Html

the current UI message if any, possibly from the current request

today :: Day

today's date (for queries containing relative dates)

j :: Journal

the up-to-date parsed unfiltered journal

q :: String

the current q parameter, the main query expression

m :: Query

a query parsed from the q parameter

qopts :: [QueryOpt]

query options parsed from the q parameter

am :: Query

a query parsed from the accounts sidebar query expr (a parameter)

aopts :: [QueryOpt]

query options parsed from the accounts sidebar query expr

showpostings :: Bool

current p parameter, 1 or 0 shows/hides all postings where applicable

nullviewdata :: ViewDataSource

Make a default ViewData, using day 0 as today's date.