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/s≠protocol

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

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

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

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
sourceraw docstring

ConformableRouteclj/s≠protocol

conformclj/s

(conform route)

Return the conformed form of this route

Return the conformed form of this route
source

Dispatchableclj/s≠protocol

dispatchclj/s

(dispatch this request args)
source

Identifiableclj/s≠protocol

identclj/s

(ident this)

Identify this logical route segment

Identify this logical route segment
source

read-recursive-routeclj/s

source

read-routeclj/s

source

recursive-routeclj/s

(recursive-route name as-segment dispatch)
source

RecursiveRoutecljs

source

Routableclj/s≠protocol

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

parentclj/s

(parent this)

Return a new routable located at the parent of this

Return a new routable located at the parent of this

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)

rootclj/s

(root this)

Return a new routable located at the root

Return a new routable located at the root
sourceraw docstring

Routecljs

source

Routedclj/s≠protocol

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
sourceraw docstring

Routercljs

source

routerclj/s

(router route)
source

Zippableclj/s≠protocol

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.
source

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

× close