hledger/hledger-web/Handler/SidebarR.hs
Simon Michael b0d71e3ccc web: declare a bunch of language pragmas
Makes the code more declarative, and makes building without cabal easier.
2015-04-07 18:35:41 -07:00

16 lines
329 B
Haskell

{-# LANGUAGE OverloadedStrings, QuasiQuotes, RecordWildCards #-}
-- | /sidebar
module Handler.SidebarR where
import Import
import Handler.Common
-- | Render just the accounts sidebar, useful when opening the sidebar.
getSidebarR :: Handler Html
getSidebarR = do
vd <- getViewData
withUrlRenderer [hamlet|^{sidebar vd}|]