Liking cljdoc? Tell your friends :D

bidi.bidi


Alternatescljs

source

altsclj/s

(alts & alts)
source

compile-routeclj/sdeprecated

(compile-route route)
source

handlerclj/sdeprecated

(handler handler)
(handler k handler)
source

IdentifiableHandlercljs

source

just-pathclj/s

(just-path path)
source

match-beginningclj/s

(match-beginning regex-pattern env)

Match the beginning of the :remainder value in m. If matched, update the :remainder value in m with the path that remains after matching.

Match the beginning of the :remainder value in m. If matched, update
the :remainder value in m with the path that remains after matching.
sourceraw docstring

match-pairclj/s

(match-pair [pattern matched] orig-env)

A pair contains a pattern to match (either fully or partially) and an expression yielding a handler. The second parameter is a map containing state, including the remaining path.

A pair contains a pattern to match (either fully or partially) and an
expression yielding a handler. The second parameter is a map
containing state, including the remaining path.
sourceraw docstring

match-routeclj/s

(match-route route path & {:as options})

Given a route definition data structure and a path, return the handler, if any, that matches the path.

Given a route definition data structure and a path, return the
handler, if any, that matches the path.
sourceraw docstring

match-route*clj/s

(match-route* route path options)
source

Matchedclj/s≠protocol

resolve-handlerclj/s

(resolve-handler _ m)

unresolve-handlerclj/s

(unresolve-handler _ m)
source

ParameterEncodingclj/s≠protocol

encode-parameterclj/s

(encode-parameter _)
source

path-forclj/s

(path-for route handler & {:as params})

Given a route definition data structure, a handler and an option map, return a path that would route to the handler. The map must contain the values to any parameters required to create the path, and extra values are silently ignored.

Given a route definition data structure, a handler and an option map, return a
path that would route to the handler. The map must contain the values to any
parameters required to create the path, and extra values are silently ignored.
sourceraw docstring

Patternclj/s≠protocol

match-patternclj/s

(match-pattern _ path)

unmatch-patternclj/s

(unmatch-pattern _ m)
source

PatternSegmentclj/s≠protocol

transform-paramclj/s

(transform-param _)

unmatch-segmentclj/s

(unmatch-segment _ params)

segment-regex-groupclj/s

(segment-regex-group _)

param-keyclj/s

(param-key _)

matches?clj/s

(matches? _ s)
source

Routecljs

source

route-seqclj/s

(route-seq route)
(route-seq [pattern matched] ctx)
source

RouteProviderclj/s≠protocol

routesclj/s

(routes _)

Provide a bidi route structure. Returns a vector pair, the first element is the pattern, the second element is the matched route or routes.

Provide a bidi route structure. Returns a vector pair,
the first element is the pattern, the second element is the matched
route or routes.
source

routes-contextclj/s

(routes-context routes context)

Wrap a Matched such that a successful match will merge the given context with the match-context. The merge is such that where there is a conflict, the inner sub-tree overrides the outer container.

Wrap a Matched such that a successful match will merge the given
context with the match-context. The merge is such that where there
is a conflict, the inner sub-tree overrides the outer container.
sourceraw docstring

RoutesContextcljs

source

RouteSeqclj/s≠protocol

gatherclj/s

(gather _ context)

Return a sequence of leaves

Return a sequence of leaves
source

succeedclj/s

(succeed handler m)
source

tagclj/s

(tag matched tag)
source

TaggedMatchcljs

source

unmatch-pairclj/s

(unmatch-pair v m)
source

url-decodeclj/s≠

clj
(url-decode string)
(url-decode string encoding)
cljs
(url-decode string)
source

url-encodeclj/s

(url-encode string)
source

uuidclj/s

(uuid s)

Function for creating a UUID of the appropriate type for the platform. Note that this function should only be used in route patterns as, at least in the case of ClojureScript, it does not validate that the input string is actually a valid UUID (this is handled by the route matching logic).

Function for creating a UUID of the appropriate type for the platform.
Note that this function should _only_ be used in route patterns as, at least
in the case of ClojureScript, it does not validate that the input string is
actually a valid UUID (this is handled by the route matching logic).
sourceraw docstring

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

× close