Skip to content
/ reload Public

Ring middleware that uses tools.namespace to reload changed files

License

Notifications You must be signed in to change notification settings

jakemcc/reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ring middleware that uses tools.namespace to reload changed files

Resources

License

Stars

Watchers

Forks

Packages

No packages published