Portability | unportable |
---|---|
Stability | unstable |
Maintainer | pbrisbin@gmail.com |
Safe Haskell | None |
Yesod.Links
Description
Documentation
data Destination m Source
An internal route or external url
A link to a Destination
with supplied titles and text to be used
when showing the html.
Constructors
Link | |
Fields
|
class YesodLinked m Source
A type family class used to generalize widgets printing routes that are internal to your site
instance YesodLinked MySite where type Linked = MySite
Any type can represent a link.
instance IsLink MyAppRoute where toLink RootR = Link (Internal RootR) "go home" "home" toLink AboutR = Link (Internal AboutR) "about this site" "about" ... getRootR :: Handler RepHtml getRootR = defaultLayout $ do [hamlet| be sure to visit our ^{link AboutR} page. |]