diff --git a/yesod/Scaffolding/Scaffolder.hs b/yesod/Scaffolding/Scaffolder.hs index 9bf2cd0a..ddede346 100644 --- a/yesod/Scaffolding/Scaffolder.hs +++ b/yesod/Scaffolding/Scaffolder.hs @@ -139,7 +139,7 @@ scaffold = do writeFile' "LICENSE" $(codegen "LICENSE") writeFile' ("Foundation.hs") $ ifTiny $(codegen "tiny/Foundation.hs") $(codegen "Foundation.hs") writeFile' "Application.hs" $ ifTiny $(codegen "tiny/Application.hs") $(codegen "Application.hs") - writeFile' "Handler/Root.hs" $ ifTiny $(codegen "tiny/Handler/Root.hs") $(codegen "Handler/Root.hs") + writeFile' "Handler/Root.hs" $(codegen "Handler/Root.hs") unless isTiny $ writeFile' "Model.hs" $(codegen "Model.hs") writeFile' "Settings.hs" $ ifTiny $(codegen "tiny/Settings.hs") $(codegen "Settings.hs") writeFile' "Settings/StaticFiles.hs" $(codegen "Settings/StaticFiles.hs") @@ -151,7 +151,7 @@ scaffold = do $(codegen "hamlet/boilerplate-layout.hamlet") writeFile' "lucius/normalize.lucius" $(codegen "lucius/normalize.lucius") - writeFile' "hamlet/homepage.hamlet" $ ifTiny $(codegen "tiny/hamlet/homepage.hamlet") $(codegen "hamlet/homepage.hamlet") + writeFile' "hamlet/homepage.hamlet" $(codegen "hamlet/homepage.hamlet") writeFile' "config/routes" $ ifTiny $(codegen "tiny/config/routes") $(codegen "config/routes") writeFile' "cassius/homepage.cassius" $(codegen "cassius/homepage.cassius") writeFile' "julius/homepage.julius" $(codegen "julius/homepage.julius") diff --git a/yesod/scaffold/Handler/Root.hs.cg b/yesod/scaffold/Handler/Root.hs.cg index 99bf711d..e485b7cd 100644 --- a/yesod/scaffold/Handler/Root.hs.cg +++ b/yesod/scaffold/Handler/Root.hs.cg @@ -12,7 +12,6 @@ import Foundation -- inclined, or create a single monolithic file. getRootR :: Handler RepHtml getRootR = do - mu <- maybeAuth defaultLayout $ do h2id <- lift newIdent setTitle "~project~ homepage" diff --git a/yesod/scaffold/hamlet/homepage.hamlet.cg b/yesod/scaffold/hamlet/homepage.hamlet.cg index 727f0eb6..34432b74 100644 --- a/yesod/scaffold/hamlet/homepage.hamlet.cg +++ b/yesod/scaffold/hamlet/homepage.hamlet.cg @@ -1,13 +1,2 @@

Hello

You do not have Javascript enabled. -$maybe u <- mu -

Logout - . -$nothing -

Login now - . - diff --git a/yesod/scaffold/tiny/Handler/Root.hs.cg b/yesod/scaffold/tiny/Handler/Root.hs.cg deleted file mode 100644 index e485b7cd..00000000 --- a/yesod/scaffold/tiny/Handler/Root.hs.cg +++ /dev/null @@ -1,18 +0,0 @@ -{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-} -module Handler.Root where - -import Foundation - --- 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 - defaultLayout $ do - h2id <- lift newIdent - setTitle "~project~ homepage" - addWidget $(widgetFile "homepage") diff --git a/yesod/scaffold/tiny/hamlet/homepage.hamlet.cg b/yesod/scaffold/tiny/hamlet/homepage.hamlet.cg deleted file mode 100644 index 34432b74..00000000 --- a/yesod/scaffold/tiny/hamlet/homepage.hamlet.cg +++ /dev/null @@ -1,2 +0,0 @@ -

Hello -

You do not have Javascript enabled. diff --git a/yesod/yesod.cabal b/yesod/yesod.cabal index 7fc47113..08543eab 100644 --- a/yesod/yesod.cabal +++ b/yesod/yesod.cabal @@ -26,8 +26,6 @@ extra-source-files: scaffold/tiny/Foundation.hs.cg scaffold/tiny/project.cabal.cg scaffold/tiny/Application.hs.cg - scaffold/tiny/hamlet/homepage.hamlet.cg - scaffold/tiny/Handler/Root.hs.cg scaffold/tiny/config/routes.cg scaffold/tiny/Settings.hs.cg scaffold/lucius/normalize.lucius.cg