Liking cljdoc? Tell your friends :D

calfpath.route.uri-token-match-impl

CLJS implementation for URI-tokens based URI matching.

CLJS implementation for URI-tokens based URI matching.
raw docstring

dynamic-uri-full-matchcljs

(dynamic-uri-full-match context pattern-tokens)

(Full) Match URI tokens (vector) against URI-pattern tokens. Optimized for dynamic routes. Return (vector of) remaining URI tokens on match, interpreted as follows:

ConditionMeaning
nilno match
emptyfull match
(Full) Match URI tokens (vector) against URI-pattern tokens. Optimized for dynamic routes.
Return (vector of) remaining URI tokens on match, interpreted as follows:

| Condition | Meaning       |
|-----------|---------------|
| `nil`     | no match      |
| empty     | full match    |
sourceraw docstring

dynamic-uri-partial-matchcljs

(dynamic-uri-partial-match context pattern-tokens)

(Partial) Match URI tokens (vector) against URI-pattern tokens. Optimized for dynamic routes. Return (vector of) remaining URI tokens on match, interpreted as follows:

ConditionMeaning
nilno match
emptyfull match
non-emptypartial match
(Partial) Match URI tokens (vector) against URI-pattern tokens. Optimized for dynamic routes.
Return (vector of) remaining URI tokens on match, interpreted as follows:

| Condition | Meaning       |
|-----------|---------------|
| `nil`     | no match      |
| empty     | full match    |
| non-empty | partial match |
sourceraw docstring

full-matchcljs

(full-match context)
(full-match context path-params)
source

FULL-URI-MATCH-TOKENScljs

source

get-path-paramscljs

(get-path-params context)
source

make-contextcljs

(make-context uri-tokens)
source

partial-matchcljs

(partial-match context uri-tokens)
(partial-match context uri-tokens path-params)
source

static-uri-full-matchcljs

(static-uri-full-match context static-tokens)

(Full) Match URI tokens against URI-pattern string tokens. Only for static routes. Return (vector) remaining-uri-tokens not yet matched - interpret as follows:

ConditionMeaning
nilno match
emptyfull match
(Full) Match URI tokens against URI-pattern string tokens. Only for static routes.
Return (vector) remaining-uri-tokens not yet matched - interpret as follows:

| Condition | Meaning       |
|-----------|---------------|
| `nil`     | no match      |
| empty     | full match    |
sourceraw docstring

static-uri-partial-matchcljs

(static-uri-partial-match context static-tokens)

(Full) Match URI tokens against URI-pattern string tokens. Only for static routes. Return (vector) remaining-uri-tokens not yet matched - interpret as follows:

ConditionMeaning
nilno match
emptyfull match
non-emptypartial match
(Full) Match URI tokens against URI-pattern string tokens. Only for static routes.
Return (vector) remaining-uri-tokens not yet matched - interpret as follows:

| Condition | Meaning       |
|-----------|---------------|
| `nil`     | no match      |
| empty     | full match    |
| non-empty | partial match |
sourceraw docstring

TokenContextcljs

source

update-uri-tokenscljs

(update-uri-tokens context uri-tokens)
source

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

× close