• (wrap-reload app reloadables)
Wrap an app such that before a request is passed to the app, each namespace
identified by syms in reloadables is reloaded.
Currently this requires that the namespaces in question are being (re)loaded
from un-jarred source files, as apposed to source files in jars or compiled
classes.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/middleware/reload.clj:4 top

(defn wrap-reload
  "Wrap an app such that before a request is passed to the app, each namespace
  identified by syms in reloadables is reloaded.
  Currently this requires that the namespaces in question are being (re)loaded
  from un-jarred source files, as apposed to source files in jars or compiled
  classes."
  [app reloadables]
  (fn [req]
    (doseq [ns-sym reloadables]
      (require ns-sym :reload))
    (app req)))
Vars in ring.middleware.reload/wrap-reload: defn doseq fn require
Used in 0 other vars

Comments top

No comments for wrap-reload. Log in to add a comment.