yesod-core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Core.Class.Dispatch.ToParentRoute

Synopsis

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

Methods

toParentRoute :: ParentArgs a -> a -> Route (ParentSite a) Source #

Since: 1.7.0.0

Instances

Instances details
RenderRoute a => ToParentRoute (Route a) Source # 
Instance details

Defined in Yesod.Core.Class.Dispatch.ToParentRoute