Liking cljdoc? Tell your friends :D

reitit.frontend


match-by-namecljs

(match-by-name router name)
(match-by-name router name path-params)

Given a router, route name and optionally path-parameters, will return a Match (exact match), PartialMatch (missing path-parameters) or nil (no match).

Given a router, route name and optionally path-parameters,
will return a Match (exact match), PartialMatch (missing path-parameters)
or `nil` (no match).
raw docstring

match-by-name!cljs

(match-by-name! router name)
(match-by-name! router name path-params)

Logs problems using console.warn

Logs problems using console.warn
raw docstring

match-by-pathcljs

(match-by-path router path)

Given routing tree and current path, return match with possibly coerced parameters. Return nil if no match found.

Given routing tree and current path, return match with possibly
coerced parameters. Return nil if no match found.
raw docstring

query-paramscljs

(query-params uri)

Given goog.Uri, read query parameters into Clojure map.

Given goog.Uri, read query parameters into Clojure map.
raw docstring

routercljs

(router raw-routes)
(router raw-routes opts)

Create a reitit.core.router from raw route data and optionally an options map. Enables request coercion. See [[reitit.core.router]] for details on options.

Create a `reitit.core.router` from raw route data and optionally an options map.
Enables request coercion. See [[reitit.core.router]] for details on options.
raw docstring

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

× close