yesod/yesod/scaffold/Handler/Root.hs.cg
Michael Snoyman a7df7531dc Add 'yesod/' from commit '45bbb0fc93db341ecac1406234fe0e880d63ed12'
git-subtree-dir: yesod
git-subtree-mainline: d865dc20a1
git-subtree-split: 45bbb0fc93
2011-07-22 08:59:52 +03:00

20 lines
656 B
Plaintext

{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-}
module Handler.Root where
import ~sitearg~
-- This is a handler function for the GET request method on the RootR
-- resource pattern. All of your resource patterns are defined in
-- config/routes
--
-- The majority of the code you will write in Yesod lives in these handler
-- functions. You can spread them across multiple files if you are so
-- inclined, or create a single monolithic file.
getRootR :: Handler RepHtml
getRootR = do
mu <- maybeAuth
defaultLayout $ do
h2id <- lift newIdent
setTitle "~project~ homepage"
addWidget $(widgetFile "homepage")