Ring/Reitit adapter for embeddable stube kernels.
Ring/Reitit adapter for embeddable stube kernels.
(ring-handler k)(ring-handler k {:keys [mounts mounts-fn] :or {mounts {}}})Return a Ring handler for kernel k.
:mounts-fn, when supplied, is called on each request so standalone
mount! calls can be picked up without restarting. Otherwise :mounts
is used as a static path→root map.
Return a Ring handler for kernel `k`. `:mounts-fn`, when supplied, is called on each request so standalone `mount!` calls can be picked up without restarting. Otherwise `:mounts` is used as a static path→root map.
(ring-routes k)(ring-routes k {:keys [mounts] :or {mounts {}}})Return a Reitit route data vector for kernel k.
Optional :mounts is a map of host paths to root component ids; these
shell routes are left exactly as supplied so a host can decide where a
stube widget belongs in its own route tree. Kernel :base-path only
prefixes generated stube asset/SSE/event URLs.
Return a Reitit route data vector for kernel `k`. Optional `:mounts` is a map of host paths to root component ids; these shell routes are left exactly as supplied so a host can decide where a stube widget belongs in its own route tree. Kernel `:base-path` only prefixes generated stube asset/SSE/event URLs.
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 |