Liking cljdoc? Tell your friends :D

ring.middleware.cljsjs


asset-mapclj

(asset-map)
(asset-map prefix)

Build map of request uri to classpath uri.

Finds all resources in cljsjs classpath prefix and parses those paths to build the map. Build type part of the path is ignored when building the url.

For example: cljsjs/react-mdl/development/material.css => cljsjs/react-mdl/material.css

Build map of request uri to classpath uri.

Finds all resources in cljsjs classpath prefix and parses those paths to
build the map. Build type part of the path is ignored when building the url.

For example:
cljsjs/react-mdl/development/material.css => cljsjs/react-mdl/material.css
sourceraw docstring

cljsjs-requestclj

(cljsjs-request request)
(cljsjs-request request {:keys [prefix assets] :or {prefix "/cljsjs"}})

If request uri matches given prefix (default is /cljsjs) and a resource in classpath is found under cljsjs/ prefix, returns it in a response map. Otherwise returns nil.

For example, request uri cljsjs/react-mdl/material.css will match resource cljsjs/react-mdl/development/material.css. As the build type part of the resource path is ignored.

If request uri matches given prefix (default is /cljsjs) and a resource
in classpath is found under cljsjs/ prefix, returns it in a response map.
Otherwise returns nil.

For example, request uri `cljsjs/react-mdl/material.css` will match resource
`cljsjs/react-mdl/development/material.css`. As the build type part of the
resource path is ignored.
sourceraw docstring

wrap-cljsjsclj

(wrap-cljsjs handler)
(wrap-cljsjs handler {:keys [prefix] :or {prefix "/cljsjs"}})

Middleware that first checks to see whether the request map matches a cljsjs resource. If request uri matches given prefix (default is /cljsjs) and a resource in classpath is found under cljsjs/ prefix, returns it in a response map. Otherwise the request map is passed onto the handler.

For example, request uri cljsjs/react-mdl/material.css will match resource cljsjs/react-mdl/development/material.css. As the build type part of the resource path is ignored.

Middleware that first checks to see whether the request map matches
a cljsjs resource. If request uri matches given prefix (default is /cljsjs) and a resource
in classpath is found under cljsjs/ prefix, returns it in a response map.
Otherwise the request map is passed onto the handler.

For example, request uri `cljsjs/react-mdl/material.css` will match resource
`cljsjs/react-mdl/development/material.css`. As the build type part of the
resource path is ignored.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close