web-inv-route-0.1.3.2: Composable, reversible, efficient web routing using invertible invariants and bijections
Safe HaskellNone
LanguageHaskell2010

Web.Route.Invertible.Render

Description

Render requests in various ways

Synopsis

Documentation

renderRequestBuilder :: Request -> Query -> Builder Source #

This renders a request along with additional query parameters as [/host][path][?query]. Each component is included only if it's specified by the route.

renderUrlRequestBuilder :: Request -> Query -> Builder Source #

This renders a request along with additional query parameters as scheme:[/host][path][?query]. It's roughly equivalent to rendering the requestURI.

renderHamletUrl :: BoundRoute -> [(Text, Text)] -> Text Source #

A Render function, suitable for passing to a HtmlUrl (RouteAction a b, a) template.