Paths built from a route's :name, never spelt by hand: a route moved moves every
link, redirect and mail with it. The router is the one the base built, read from a
request it answered (:reitit.core/router), from the handler handler returned (its
metadata), or given as a router (wb/router).
Paths built from a route's `:name`, never spelt by hand: a route moved moves every link, redirect and mail with it. The router is the one the base built, read from a request it answered (`:reitit.core/router`), from the handler `handler` returned (its metadata), or given as a router (`wb/router`).
(path-for source route-name)(path-for source route-name params)(path-for source route-name params query)The path of the route named route-name, its path params in place and query
encoded after it. source is a request the router answered, the handler handler
returned, or a router. A name the router does not know, or a path parameter it needs
and was not given — nil, or an empty string — is refused naming the route: never a
link to nowhere.
The path of the route named `route-name`, its path `params` in place and `query` encoded after it. `source` is a request the router answered, the handler `handler` returned, or a router. A name the router does not know, or a path parameter it needs and was not given — nil, or an empty string — is refused naming the route: never a link to nowhere.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |