Web Development with Clojure, Third Edition: Omitted `var` (page 38)

After the introduction of of muuntaja the -main function changes from

(defn -main []
(jetty/run-jetty
(-> handler
var
wrap-nocache
wrap-reload)
{:port 3000
:join? false}))

to

(defn -main []
(jetty/run-jetty
(-> #'handler
wrap-nocache
wrap-formats
wrap-reload)
{:port 3000
:join? false}))

The handler is no longer turned into a var which defeats the purpose of wrap-reload (which is still present). Possibly a slip worth being corrected.

Thanks for this great book!

1 Like