Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data RenderedRoute
- renderedRouteLink :: Text -> RenderedRoute -> Link
- getRenderedRoute :: (MonadHandler m, RenderRoute (HandlerSite m)) => m RenderedRoute
- updateQueryParameter :: Text -> Maybe Text -> RenderedRoute -> RenderedRoute
Documentation
data RenderedRoute Source #
Information about a relative Route with query string
Instances
ToJSON RenderedRoute Source # | |
Defined in Yesod.Page.RenderedRoute toJSON :: RenderedRoute -> Value # toEncoding :: RenderedRoute -> Encoding # toJSONList :: [RenderedRoute] -> Value # toEncodingList :: [RenderedRoute] -> Encoding # |
renderedRouteLink :: Text -> RenderedRoute -> Link Source #
Convert a
into a RenderedRoute
with the given Link
Rel
getRenderedRoute :: (MonadHandler m, RenderRoute (HandlerSite m)) => m RenderedRoute Source #
Get the current route as a RenderedRoute
updateQueryParameter :: Text -> Maybe Text -> RenderedRoute -> RenderedRoute Source #
Update a single query parameter and preserve the rest
If given
, the parameter is removed.Nothing