Ring-Refresh is a middleware library for Ring that automatically triggers a browser refresh when your source files change.
response triggered by a
This library is designed for use only in development environments.
Add the following development dependency to your
By default, the middleware monitors the
(use 'ring.middleware.refresh) (def app (wrap-refresh your-handler))
But it can be customized to include other directories:
(def app (wrap-refresh your-handler ["src" "resources" "checkouts/foo/src"]))
Copyright © 2012 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.