Put getExtra in scaffolded Foundation.hs
This commit is contained in:
parent
b4d1b2087c
commit
6c834ec0cc
@ -10,6 +10,7 @@ module Foundation
|
||||
, requireAuth
|
||||
, module Settings
|
||||
, module Model
|
||||
, getExtra
|
||||
) where
|
||||
|
||||
import Prelude
|
||||
@ -149,6 +150,10 @@ instance YesodAuth ~sitearg~ where
|
||||
instance RenderMessage ~sitearg~ FormMessage where
|
||||
renderMessage _ _ = defaultFormMessage
|
||||
|
||||
-- | Get the 'Extra' value, used to hold data from the settings.yml file.
|
||||
getExtra :: Handler Extra
|
||||
getExtra = fmap (appExtra . settings) getYesod
|
||||
|
||||
-- Note: previous versions of the scaffolding included a deliver function to
|
||||
-- send emails. Unfortunately, there are too many different options for us to
|
||||
-- give a reasonable default. Instead, the information is available on the
|
||||
|
||||
Loading…
Reference in New Issue
Block a user