This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-04
Channels
- # beginners (56)
- # boot (11)
- # cider (1)
- # clojure (112)
- # clojure-denmark (4)
- # clojure-russia (7)
- # clojurescript (45)
- # component (1)
- # cursive (19)
- # data-science (10)
- # datacrypt (1)
- # datascript (22)
- # datomic (3)
- # defnpodcast (2)
- # emacs (4)
- # fulcro (26)
- # hoplon (21)
- # jobs-discuss (5)
- # klipse (5)
- # onyx (8)
- # portkey (1)
- # re-frame (8)
- # reagent (17)
- # ring (7)
- # shadow-cljs (14)
- # spacemacs (9)
- # vim (4)
@weavejester thanks for your help ~last week with my wrap-content-type question. everything finally clicked for me. i know understand that i really should only return response maps (and then it’s actually easier to just use ring.util.response when i do) when i really need to, and if i just return a string compojure will build the response for me and the middleware behaves as expected 👍:skin-tone-2:
@chadhs You’re welcome
was a fun rollercoaster ride of “i know how to build clojure web apps → i don’t know anything → AHA!“ 😉
Returning response maps isn’t necessarily bad; it’s just that Compojure has a few shortcuts based on type that make things easier: https://github.com/weavejester/compojure/blob/master/src/compojure/response.clj
But I’m glad everything clicked for you 🙂