Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 619 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 619 Bytes

ring-middleware-force-reload

An extremely simple Ring middleware that forces a reload of given namespaces prior to every request. Based on the old behavior of ring.middleware.wrap-reload prior to https://github.com/mmcgrana/ring/commit/f39e24da7e97dd7354f47c16f160322cca35986d#ring-devel/src/ring/middleware/reload.clj. Intended primarily to force reloading of cached, non-Clojure assets such as Enlive templates.

Usage

(defroutes my-routes
  ...)

(def app
  (wrap-force-reload my-routes ['myapp.namespace]))

License

Distributed under the Eclipse Public License, the same as Clojure.