CLJS implementation for URI-tokens based URI matching.
CLJS implementation for URI-tokens based URI matching.
(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:
Condition | Meaning |
---|---|
nil | no match |
empty | full 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 |
(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:
Condition | Meaning |
---|---|
nil | no match |
empty | full match |
non-empty | partial 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 |
(partial-match context uri-tokens)
(partial-match context uri-tokens path-params)
(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:
Condition | Meaning |
---|---|
nil | no match |
empty | full 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 |
(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:
Condition | Meaning |
---|---|
nil | no match |
empty | full match |
non-empty | partial 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 |
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close