(match url)
Matches a URL against all screen routes. Returns a {:params <route params> :screen <screen>} map, where :screen holds the screen for the URL and the route params map all parameterizable URL segments (e.g. :user-id) to their values in the URL.
Matches a URL against all screen routes. Returns a {:params <route params> :screen <screen>} map, where :screen holds the screen for the URL and the route params map all parameterizable URL segments (e.g. :user-id) to their values in the URL.
(path screen-or-name & params)
Returns a URL path for the given screen and the given URL parameters. Accepts both screen names and screens. For example,
(path 'user :user-id 1) (path (workflo.macros.screen/resolve-screen 'user) :user-id 1)
are both acceptable uses of this function.
Returns a URL path for the given screen and the given URL parameters. Accepts both screen names and screens. For example, (path 'user :user-id 1) (path (workflo.macros.screen/resolve-screen 'user) :user-id 1) are both acceptable uses of this function.
(route [screen-name screen])
Returns a bidi route for the given screen.
Returns a bidi route for the given screen.
(router {:keys [default-screen default-params mount-screen]
:or {default-screen (quote home) default-params {}}
:as env})
(routes)
Returns combined bidi routes for all registered screens.
Returns combined bidi routes for all registered screens.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close