Liking cljdoc? Tell your friends :D

janus.route

Construct routing tree, identify route from URIs and generate route from parameters

Construct routing tree, identify route from URIs and generate route from parameters
raw docstring

AsSegmentclj/sprotocol

An abstraction for concisely representing the construction and identification of route segments

An abstraction for concisely representing the construction and identification of route segments

buildclj/s

(build this options)

Build the segment represented by this with the given options

Build the segment represented by this with the given options

matchclj/s

(match this segment)

If the given segment matches this, return the match context (if any), otherwise falsey

If the given segment matches this, return the match context (if any), otherwise falsey
raw docstring

ConformableRouteclj/sprotocol

conformclj/s

(conform route)

Return the conformed form of this route

Return the conformed form of this route

dispatchclj/s

(dispatch dispatchable & args)

Dispatch to the Dispatchable.dispatch method while collecting varargs

Dispatch to the Dispatchable.dispatch method while collecting varargs
raw docstring

Dispatchableclj/sprotocol

dispatch*clj/s

(dispatch* this args)

Identifiableclj/sprotocol

identclj/s

(ident this)

Identify this logical route segment

Identify this logical route segment

read-recursive-routeclj/s


read-routeclj/s


recursive-routeclj/s

(recursive-route name as-segment dispatch)

RecursiveRoutecljs


Routableclj/sprotocol

An abstraction for an entity located in the route tree that can process move instructions by returning a new instance

An abstraction for an entity located in the route tree that can process move instructions by
returning a new instance

generateclj/s

(generate this params)

Return a new routable based on the given path parameters

Return a new routable based on the given path parameters

identifyclj/s

(identify this path)

Return a new routable based on the given path (URI)

Return a new routable based on the given path (URI)

parentclj/s

(parent this)

Return a new routable located at the parent of this

Return a new routable located at the parent of this

rootclj/s

(root this)

Return a new routable located at the root

Return a new routable located at the root
raw docstring

Routecljs


Routedclj/sprotocol

An abstraction for an entity located in the route tree that can describe its position

An abstraction for an entity located in the route tree that can describe its position

identifiersclj/s

(identifiers this)

Return the route as a sequence of segment identifiers

Return the route as a sequence of segment identifiers

parametersclj/s

(parameters this)

Return map of segment identifiers to route parameters

Return map of segment identifiers to route parameters

pathclj/s

(path this)
(path this generalized?)

Return the path of the route as a string, optionally generalized

Return the path of the route as a string, optionally generalized
raw docstring

Routerclj/s


routerclj/s

(router route)

url-decodeclj/s


url-encodeclj/s


Zippableclj/sprotocol

branch?clj/s

(branch? route)

Is it possible for this node to have children?

Is it possible for this node to have children?

childrenclj/s

(children route)

Return children of this node.

Return children of this node.

make-nodeclj/s

(make-node route children)

Makes new node from existing node and new children.

Makes new node from existing node and new children.

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

× close