Liking cljdoc? Tell your friends :D

reitit.trie


catch-all?

(catch-all? x)
source

CatchAll

source

clojure-trie-compiler

(clojure-trie-compiler)
source

compile

(compile options)
(compile options compiler)
(compile {:keys [data params children wilds catch-all],
          :or {params {}}}
         compiler
         cp)

Returns a compiled trie, to be used with pretty or path-matcher.

Returns a compiled trie, to be used with [[pretty]] or [[path-matcher]].
sourceraw docstring

compiler

(compiler)

Returns a default TrieCompiler.

Returns a default [[TrieCompiler]].
sourceraw docstring

conflicting-paths?

(conflicting-paths? path1 path2)
source

insert

(insert routes)
(insert node routes)
(insert node path data)
(insert node
        path
        data
        {:reitit.trie/keys [parameters],
         :or {parameters map-parameters}})

Returns a trie with routes added to it.

Returns a trie with routes added to it.
sourceraw docstring

java-trie-compiler

(java-trie-compiler)
source

join-path

(join-path xs)
source

Match

source

Matcherprotocol

depth
(depth this)
length
(length this)
match
(match this
  i max
  path)
view
(view this)
source

Node

source

normalize

(normalize s)
source

path-matcher

(path-matcher compiled-trie)
(path-matcher compiled-trie compiler)

Returns a function of path -> Match from a compiled trie.

Returns a function of `path -> Match` from a compiled trie.
sourceraw docstring

pretty

(pretty compiled-trie)
(pretty compiled-trie compiler)

Returns a simplified EDN structure of a compiled trie for printing purposes.

Returns a simplified EDN structure of a compiled trie for printing purposes.
sourceraw docstring

record-parameters

Memoized function to transform parameters into runtime generated Record.

Memoized function to transform parameters into runtime generated Record.
sourceraw docstring

split-path

(split-path s)
source

TrieCompilerprotocol

-path-matcher
(-path-matcher this matcher)
-pretty
(-pretty this matcher)
catch-all-matcher
(catch-all-matcher this key params data)
data-matcher
(data-matcher this params data)
linear-matcher
(linear-matcher this matchers ordered?)
static-matcher
(static-matcher this path matcher)
wild-matcher
(wild-matcher this key end matcher)
source

Wild

source

wild?

(wild? x)
source

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

× close