(goto path)
Returns an action that causes the browser to go to the given path. Must be emitted from an item below a history-router item.
Returns an action that causes the browser to go to the given path. Must be emitted from an item below a history-router item.
(href route & params)
Return an url string for the given route, with arguments for the positional and maybe a map for query params as required by the given route. Note that this is the same as calling the route as a function.
Return an url string for the given route, with arguments for the positional and maybe a map for query params as required by the given route. Note that this is the same as calling the route as a function.
(html5-history-router pages)
An item that renders to one of the pages from the given map of
routes to pages, depending on the current browser location, which is
monitored for changes. It also handles goto
actions emitted from
within, modifying the browser history accordingly. A page must be a
function taking the arguments the route, returning an item.
An item that renders to one of the pages from the given map of routes to pages, depending on the current browser location, which is monitored for changes. It also handles [[goto]] actions emitted from within, modifying the browser history accordingly. A page must be a function taking the arguments the route, returning an item.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close