`setDescription` and `setDescriptionI` present a similar API to `setTitle` and `setTitleI`, but unlike those functions the description functions are not idempotent - so calling them multiple times inserts multiple `<meta/>` tags in HTML `<head/>`. This adds explicitly idempotent versions of those functions which are handled in a similar way to the title, so that calling them multiple times has the effect of taking the final value specified. Because the non-idempotent behaviour of setDescription is not obvious, this also adds warnings for that behaviour to make it clear what the effect of multiple calls will be. Unfortunately, setDescriptionIdemp can't be made a drop-in replacement because developers may have defined their own layouts which need to take pageDescription into account. |
||
|---|---|---|
| .. | ||
| attic | ||
| bench | ||
| src/Yesod | ||
| static | ||
| test | ||
| .gitignore | ||
| bench.sh | ||
| ChangeLog.md | ||
| helloworld.hs | ||
| LICENSE | ||
| README.md | ||
| Setup.lhs | ||
| yesod-core.cabal | ||
yesod-core
This is the main package for Yesod, providing all core functionality on which other packages can be built. It provides dispatch, handler functions, widgets, etc.
Yesod is well documented on its website.