Liking cljdoc? Tell your friends :D

secretary.core


*route-prefix*cljs

source

defrouteclj/smacro

(defroute name pattern destruct & body)

Define an instance of secretary.core/Route.

Define an instance of secretary.core/Route.
sourceraw docstring

IRenderRoutecljsprotocol

-render-routecljs

(-render-route this)
(-render-route this params)
source

IRouteMatchescljsprotocol

-route-matchescljs

(-route-matches this x)
source

IRouteValuecljsprotocol

-route-valuecljs

(-route-value this)
source

make-routecljs

(make-route pattern action)

Returns an instance of Route given a pattern and action.

Returns an instance of Route given a pattern and action.
sourceraw docstring

render-routecljs

(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.
sourceraw docstring

request-mapcljs

(request-map s)
source

Routecljs

source

route-matchescljs

(route-matches route x)

Extract matches from x with route. route must satisfy IRouteMatches.

Extract matches from x with route. route must satisfy IRouteMatches.
sourceraw docstring

route-valuecljs

(route-value route)

Return the value for a route. route must satisfy IRouteValue.

Return the value for a route. route must satisfy IRouteValue.
sourceraw docstring

route?cljs

(route? x)

Returns true if x is an instance of Route.

Returns true if x is an instance of Route.
sourceraw docstring

set-route-prefix!cljs

(set-route-prefix! prefix)
source

uri-dispatchercljs

(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.
sourceraw docstring

wrap-query-paramscljs

(wrap-query-params handler)
source

wrap-routecljs

(wrap-route handler routes)
source

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

× close