(capture-constraint [k v])
Add parenthesis to a regex in order to capture its value during evaluation.
Add parenthesis to a regex in order to capture its value during evaluation.
(defroutes name route-spec)
Deprecated. -- Prefer def
and program against ExpandableRoutes
Define a routing table from the terse routing syntax.
Deprecated. -- Prefer `def` and program against ExpandableRoutes Define a routing table from the terse routing syntax.
(prioritize-constraints routing-table)
Sort a flat routing table of entries to guarantee that the most constrained route entries appear in the table prior to entries which have fewer constraints or no constraints.
Sort a flat routing table of entries to guarantee that the most constrained route entries appear in the table prior to entries which have fewer constraints or no constraints.
(sort-by-constraints groupings route-path)
Sort the grouping of route entries which all correspond to
route-path
from groupings
such that the most constrained route
table entries appear first and the least constrained appear last.
Sort the grouping of route entries which all correspond to `route-path` from `groupings` such that the most constrained route table entries appear first and the least constrained appear last.
(uniquely-add-route-path route-paths route-path)
Append route-path
to route-paths
if route-paths doesn't contain it
already.
Append `route-path` to `route-paths` if route-paths doesn't contain it already.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close