Liking cljdoc? Tell your friends :D

cljdoc.server.routes

Pedestals routing is pretty nice but tying the routing table too much to the handlers can be annoying when trying to generate routes outside of a Pedestal server (e.g. when rendering files statically.)

This namespace lists all routes of cljdoc and exposes some utility functions to generate URLs given the routing information.

With some more work this could probably also be used from ClojureScript.

For use with http handlers a route-resolver can be passed when generating all routes. See docstring of routes for details.

Pedestals routing is pretty nice but tying the routing table too much
to the handlers can be annoying when trying to generate routes outside
of a Pedestal server (e.g. when rendering files statically.)

This namespace lists all routes of cljdoc and exposes some utility
functions to generate URLs given the routing information.

With some more work this could probably also be used from ClojureScript.

For use with http handlers a `route-resolver` can be passed when
generating all routes. See docstring of `routes` for details.
raw docstring

api-routesclj

(api-routes)
source

build-log-routesclj

(build-log-routes)
source

documentation-routesclj

(documentation-routes)
source

index-routesclj

(index-routes)
source

info-pages-routesclj

(info-pages-routes)
source

match-routeclj

(match-route path-info)
source

open-search-routesclj

(open-search-routes)
source

routesclj

(routes route-resolver {:keys [host port scheme] :as opts})

Return the expanded routes given the opts as passed to io.pedestal.http.route/expand-routes. The route-resolver will be used for post processing the routes, usually setting the right interceptors.

Return the expanded routes given the `opts` as passed to
`io.pedestal.http.route/expand-routes`. The `route-resolver` will be
used for post processing the routes, usually setting the right
interceptors.
sourceraw docstring

url-forclj

source

utility-routesclj

(utility-routes)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close