diff --git a/hledger-web/Foundation.hs b/hledger-web/Foundation.hs index aca7b17c3..2d45362ff 100644 --- a/hledger-web/Foundation.hs +++ b/hledger-web/Foundation.hs @@ -17,13 +17,13 @@ import Network.HTTP.Conduit (Manager) -- import qualified Settings import Settings.Development (development) import Settings.StaticFiles -import Settings ({-widgetFile,-} Extra (..)) +import Settings (widgetFile, Extra (..)) #ifndef DEVELOPMENT import Settings (staticDir) import Text.Jasmine (minifym) #endif import Web.ClientSession (getKey) --- import Text.Hamlet (hamletFile) +import Text.Hamlet (hamletFile) import Hledger.Web.Options -- import Hledger.Web.Settings @@ -82,15 +82,15 @@ instance Yesod App where key <- getKey ".hledger-web_client_session_key.aes" return . Just $ clientSessionBackend key 120 - -- defaultLayout widget = do - -- master <- getYesod - -- mmsg <- getMessage + defaultLayout widget = do + master <- getYesod + mmsg <- getMessage - -- -- We break up the default layout into two components: - -- -- default-layout is the contents of the body tag, and - -- -- default-layout-wrapper is the entire page. Since the final - -- -- value passed to hamletToRepHtml cannot be a widget, this allows - -- -- you to use normal widget features in default-layout. + -- We break up the default layout into two components: + -- default-layout is the contents of the body tag, and + -- default-layout-wrapper is the entire page. Since the final + -- value passed to hamletToRepHtml cannot be a widget, this allows + -- you to use normal widget features in default-layout. -- pc <- widgetToPageContent $ do -- $(widgetFile "normalize") @@ -98,27 +98,21 @@ instance Yesod App where -- $(widgetFile "default-layout") -- hamletToRepHtml $(hamletFile "templates/default-layout-wrapper.hamlet") - defaultLayout widget = do pc <- widgetToPageContent $ do - widget - hamletToRepHtml [hamlet| -$doctype 5 - -
-