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 the Routes file config/routes.yesodroutes
  • We can link to other handlers, like the Comment.
  • 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 widgets 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 # in the yesod book to learn more about them.

    ^{formWidget}