Search code examples
layoutasynchronousclojurejettyring

Automatic Code reloading in Ring / Jetty


Using Ring / Jetty with Clojure, when I make any changes to my code, I have to reload my entire JVM.

Is there anyway of keeping Jetty asynchronous with changes in my code, so I can simply refresh the browser window and get changes immediately?

Specifically, I'm using Hiccup for HTML Parsing, and it's mainly changes in layout I'm making.

It would be a huge timesaver if layout changes were automatically compiled and available in browser on refresh.

Does anyone have any information on that? Are there any solutions?


Solution

  • You might want to check out lein-ring specifically :auto-reload? and :auto-refresh? options.