Yesod—a modern framework for blazing fast websites

Fast, stable & spiced with great community Read the Book

Starting

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 concepts, and best practices.

  • This page was generated by the #{handlerName} handler in Handler/Home.hs.
  • The #{handlerName} handler is set to generate your site's home screen in Routes file config/routes
  • We can link to other handlers, like the Profile. Try it out as an anonymous user and see the access denied. Then, try to login with the dummy authentication added while in development.
  • 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.
  • A Widget's Html, Css and Javascript are separated in three files with the .hamlet, .lucius and .julius extensions.
  • If you had javascript enabled then you wouldn't be seeing this.

    Forms

    This is an example of a form. Read the Forms chapter # on the yesod book to learn more about them.

    ^{formWidget}