Question

I am using enlive for my web development. I start my ring server in repl using (serve my-app/handler)

However when I make changes to any of my html templates I have to restart my repl for the changes to show up. How do I reload my markup without restarting the repl ?

Thanks, Murtaza

Was it helpful?

Solution

You need to reevaluate lines that read the template. For example in my project I would have to reevaluate ("C-x C-e" in Emacs) the following line:

(def table-template (h/html-resource "META-INF/web/table.html"))

If you don't use Emacs you could try require namespace that contains templates with :reload, please see this: force clojure :reload

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top