From f8b325748a3631df00841f3524b6e1f95a4e30f4 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 19 Jul 2013 15:25:08 -0400 Subject: Update to newer Yesod. --- templates/homepage.hamlet | 43 ++++++------------------------------------- templates/homepage.julius | 2 +- templates/userpage.hamlet | 22 ++++++++++++++++++---- 3 files changed, 25 insertions(+), 42 deletions(-) (limited to 'templates') diff --git a/templates/homepage.hamlet b/templates/homepage.hamlet index c40be5c..e383365 100644 --- a/templates/homepage.hamlet +++ b/templates/homepage.hamlet @@ -1,38 +1,7 @@ -

_{MsgHello} +

_{MsgTimekeeping} -
    -
  1. Now that you have a working project you should use the # - \Yesod book to learn more. # - You can also use this scaffolded site to explore some basic concepts. - -
  2. This page was generated by the #{handlerName} handler in # - \Handler/Root.hs. - -
  3. The #{handlerName} handler is set to generate your site's home screen in Routes file # - config/routes - -
  4. The HTML you are seeing now is actually composed by a number of widgets, # - most of them are brought together by the defaultLayout function which # - is defined in the Foundation.hs module, and used by #{handlerName}. # - All the files for templates and wigdets are in templates. - -
  5. - A Widget's Html, Css and Javascript are separated in three files with the # - \.hamlet, .lucius and .julius extensions. - -
  6. If you had javascript enabled then you wouldn't be seeing this. - -
  7. - This is an example trivial Form. Read the # - \Forms chapter # - on the yesod book to learn more about them. - $maybe (info,con) <- submission -
    - Your file's type was #{fileContentType info}. You say it has: #{con} -
    - ^{formWidget} - - -
  8. And last but not least, Testing. In tests/main.hs you will find a # - test suite that performs tests on this page. # - You can run your tests by doing:
    yesod test
    +