Liking cljdoc? Tell your friends :D

secretary.core


*config*cljs

source

*routes*cljs

source

add-route!cljs

(add-route! obj action)
source

decodecljs

source

decode-query-paramscljs

(decode-query-params query-string)

Extract a map of query parameters from a query string.

Extract a map of query parameters from a query string.
sourceraw docstring

defrouteclj/smacro

(defroute route destruct & body)

Add a route to the dispatcher.

Add a route to the dispatcher.
sourceraw docstring

dispatch!cljs

(dispatch! uri)

Dispatch an action for a given route if it matches the URI path.

Dispatch an action for a given route if it matches the URI path.
sourceraw docstring

encodecljs

source

encode-query-paramscljs

(encode-query-params query-params)

Convert a map of query parameters into url encoded string.

Convert a map of query parameters into url encoded string.
sourceraw docstring

encode-uricljs

(encode-uri uri)

Like js/encodeURIComponent excepts ignore slashes.

Like js/encodeURIComponent excepts ignore slashes.
sourceraw docstring

get-configcljs

(get-config path)

Gets a value for config at path.

Gets a value for *config* at path.
sourceraw docstring

invalid-paramscljs

(invalid-params params validations)
source

IRenderRoutecljsprotocol

render-routecljs

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

IRouteMatchescljsprotocol

route-matchescljs

(route-matches this route)
source

IRouteValuecljsprotocol

route-valuecljs

(route-value this)
source

locate-routecljs

(locate-route route)
source

locate-route-valuecljs

(locate-route-value uri)

Returns original route value as set in defroute when passed a URI path.

Returns original route value as set in defroute when passed a URI path.
sourceraw docstring

remove-route!cljs

(remove-route! obj)
source

render-route*cljs

(render-route* obj & args)
source

reset-routes!cljs

(reset-routes!)
source

set-config!cljs

(set-config! path val)

Associates a value val for config at path.

Associates a value val for *config* at path.
sourceraw docstring

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

× close