Liking cljdoc? Tell your friends :D

dev.zeko.stube.adapter.ring

Ring/Reitit adapter for embeddable stube kernels.

Ring/Reitit adapter for embeddable stube kernels.
raw docstring

ring-handlerclj

(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.
sourceraw docstring

ring-routesclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close