| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Yesod.Core.Class.Dispatch.ToParentRoute
Synopsis
- class RenderRoute (ParentSite a) => ToParentRoute a where
- toParentRoute :: ParentArgs a -> a -> Route (ParentSite a)
Documentation
class RenderRoute (ParentSite a) => ToParentRoute a where Source #
Reconstruct a full parent route from a nested route fragment and its
ParentArgs (the dynamic pieces consumed by the ancestor parents). This is
what lets a fragment dispatched in its own module be rendered back into the
master site's .Route (ParentSite a)
Since: 1.7.0.0
Instances
| RenderRoute a => ToParentRoute (Route a) Source # | |
Defined in Yesod.Core.Class.Dispatch.ToParentRoute Methods toParentRoute :: ParentArgs (Route a) -> Route a -> Route (ParentSite (Route a)) Source # | |