(defroute name pattern destruct & body)
Define an instance of secretary.core/Route.
Define an instance of secretary.core/Route.
(make-route pattern action)
Returns an instance of Route given a pattern and action.
Returns an instance of Route given a pattern and action.
(render-route route)
(render-route route params)
Return a representation of route optionally with params. route must satisfy IRenderRoute.
Return a representation of route optionally with params. route must satisfy IRenderRoute.
(route-matches route x)
Extract matches from x with route. route must satisfy IRouteMatches.
Extract matches from x with route. route must satisfy IRouteMatches.
(route-value route)
Return the value for a route. route must satisfy IRouteValue.
Return the value for a route. route must satisfy IRouteValue.
(route? x)
Returns true if x is an instance of Route.
Returns true if x is an instance of Route.
(uri-dispatcher routes)
(uri-dispatcher routes handler)
Return a dispatcher which when invoked with a uri attempts to locate, match, and apply a routing action. Optionally a ring-style handler may be passed.
Return a dispatcher which when invoked with a uri attempts to locate, match, and apply a routing action. Optionally a ring-style handler may be passed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close