A Clojure Ring middleware that uses tools.namespace for detecting and reloading changed namespaces.
Require com.jakemccrary.middleware.reload
and wrap your handler with wrap-reload
.
(ns example
(:require
;; more deps
[com.jakemccrary.middleware.reload :as reload]))
;; wherever you are setting up your middleware stack
(reload/wrap-reload routes)
reload/wrap-reload
optionally takes a list of directories to monitor
as a second parameter. By default it the src
directory.
Copyright © 2016 Jake McCrary
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close