I would like to use figwheel to reload the interface of the all-clojure project I'm playing with.
The backend serves the REST api and is organized as a group of components from which I create a system in my main function (I use duct to create a handler component). I want to pass state to my handlers using closures, but the only way to configure figwheel to use my handler seems to be to set the ring-handler to enter project.clj , and this requires passing the handler defined in the namespace at the time of lein .
So - is there a way to configure figwheel when I run my component? I'm still very new at Closure, so I probably missed something in sight.
Passing state as parameter to call handler? is a similar question, but the answer there is related to binding the var handler at the top level of the namespace that I am trying to avoid.
clojure ring
Tom dunham
source share