kenrestivo/noir — pull request #1 by kenrestivo (2012-05-24 21:24:26+00:00)
Title: Regenerate handlers from REPL without restarting

Expose a function for regenerating the Noir handler, from the REPL, in a running Jetty server, to enable interactively developing/testing middleware, without restarting the Jetty server or JVM.

I kept it simple and didn't try to make it automatic, so usage is like:

```clojure
(reset! noir.server.handler/middleware []) ;; if you want to replace the middleware, they're not keyed
(server/add-middleware some-middleware)
(noir.server/regen-handler opts)
```

But at least it's not necessary to restart the server or the JVM.