- Mark
This isn't actually correct. The lein-ring plugin references the
handler as a var, meaning that if you redefine the handler function,
the Jetty adapter will automatically know about the changes.
- James
This sounds like the ring-reload-modified middleware is not correctly
resolving dependencies between source files.
In theory, if your handler file A depends on another file B, then
changing B will reload both A and B.
Could you post the "ns" declaration from the file that contains your
handler, and tell us which namespace your middleware function is in?
- James
I think we're saying the same thing, maybe not though. When you
redefine a middleware function you are not redifining the handler,
correct? And that existing handler already has the old middleware
added, right? My understanding is that the redefining of the handler
occurred when that file that defined it was changed and reloaded.
Apologies if I'm misunderstanding things.