Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 940 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 940 Bytes

reload

A Clojure Ring middleware that uses tools.namespace for detecting and reloading changed namespaces.

Usage

Add the latest version to your project.clj.

Clojars Project

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.

License

Copyright © 2016 Jake McCrary

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.