Safe Haskell | None |
---|
- routeWith :: (PathInfo url, MonadSnap m) => (url -> m ()) -> m ()
- routeWithDebug :: (PathInfo url, MonadSnap m) => (url -> m ()) -> m ()
- renderRoute :: PathInfo url => url -> [(Text, Maybe Text)] -> Text
- renderRouteWithPrefix :: PathInfo url => Text -> url -> [(Text, Maybe Text)] -> Text
- showUrl :: MonadRoute m => URL m -> m Text
- showUrlParams :: MonadRoute m => URL m -> [(Text, Maybe Text)] -> m Text
- urlSplice :: MonadRoute m => URL m -> m [Node]
Documentation
Given a routing function, routes matching requests or calls
pass
.
Given a routing function, routes matching requests or returns debugging information. This is __not suitable for production__, but can be useful in seeing what paths are available or determining why a path isn't routing as expected.
Turn a route and params into a path.
:: PathInfo url | |
=> Text | route prefix |
-> url | URL data type |
-> [(Text, Maybe Text)] | parameters |
-> Text | rendered route |
Turn a route and params into a path with the given prefix.
:: MonadRoute m | |
=> URL m | URL data type |
-> m Text | rendered route |
urlSplice :: MonadRoute m => URL m -> m [Node]Source
Render a url as a Heist
splice.