1

I have a web application that uses enlive.

If I change an html file used by a template I don't see the changes unless I restart figwheel.

I am using ring.middleware.reload/wrap-reload like this:

 (-> routes
     (ring.middleware.reload/wrap-reload {:dirs ["src" "resources"]})
 ...

...but without any effect.

Note that if I change any .clj or .cljs file I don't have to restart the server.

vidi
  • 2,056
  • 16
  • 34

1 Answers1

0

Following the link given by Piotrek I found this project which fixed my issue: https://github.com/kolov/enlive-reload

The fix was to wrap the routes with (wrap-enlive-reload) and now everything works just fine.

vidi
  • 2,056
  • 16
  • 34