Liking cljdoc? Tell your friends :D

secretary.core


*config*cljs


*routes*cljs


add-route!cljs

(add-route! obj action)

decodecljs


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.
raw docstring

defrouteclj/smacro

(defroute route destruct & body)

Add a route to the dispatcher.

Add a route to the dispatcher.
raw 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.
raw docstring

encodecljs


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.
raw docstring

encode-uricljs

(encode-uri uri)

Like js/encodeURIComponent excepts ignore slashes.

Like js/encodeURIComponent excepts ignore slashes.
raw docstring

get-configcljs

(get-config path)

Gets a value for config at path.

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

invalid-paramscljs

(invalid-params params validations)

IRenderRoutecljsprotocol

render-routecljs

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

IRouteMatchescljsprotocol

route-matchescljs

(route-matches this route)

IRouteValuecljsprotocol

route-valuecljs

(route-value this)

locate-routecljs

(locate-route route)

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.
raw docstring

remove-route!cljs

(remove-route! obj)

render-route*cljs

(render-route* obj & args)

reset-routes!cljs

(reset-routes!)

set-config!cljs

(set-config! path val)

Associates a value val for config at path.

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

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

× close