Liking cljdoc? Tell your friends :D

blueprint.assets


generate-ring-handlerclj

(generate-ring-handler {:keys [assets] :as api-def})

Generates a ring handler for asset managing. api-def should have an assets key:

:router
{:assets ["/public" ["root1" ... "rootN"]}

The assets will be served from the classpath, with the optional root. All roots will be sequentially tested until one of them returns an asset.

Generates a ring handler for asset managing. `api-def` should have an `assets` key:

```
:router
{:assets ["/public" ["root1" ... "rootN"]}
```

The assets will be served from the *classpath*, with the optional `root`.
All roots will be sequentially tested until one of them returns an asset.
raw docstring

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

× close