This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-09
Channels
- # admin-announcements (5)
- # architecture (8)
- # beginners (7)
- # boot (41)
- # braveandtrue (1)
- # cider (77)
- # clara (3)
- # cljs-dev (56)
- # cljsjs (7)
- # cljsrn (7)
- # clojure (44)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-hk (3)
- # clojure-russia (137)
- # clojure-spec (14)
- # clojure-uk (44)
- # clojurescript (33)
- # cloverage (3)
- # core-async (10)
- # css (1)
- # cursive (16)
- # datomic (116)
- # devcards (14)
- # emacs (1)
- # events (1)
- # funcool (2)
- # functionalprogramming (1)
- # hammock-driven-dev (1)
- # jobs-rus (124)
- # lein-figwheel (1)
- # leiningen (1)
- # liberator (4)
- # melbourne (3)
- # mount (73)
- # off-topic (3)
- # om (4)
- # om-next (15)
- # onyx (38)
- # other-languages (4)
- # perun (2)
- # proton (36)
- # protorepl (2)
- # random (1)
- # re-frame (56)
- # reagent (7)
- # specter (4)
- # testing (1)
- # untangled (13)
- # yada (18)
Your handler needs to return a valid response map. ie {:status 200 :headers {} :body content}
I'm still not there yet. The browser assumes the user wants to download a file, presumably because the content type is not known.
Even if you set a content type in the headers @cjmurphy ? We explicitly set content types via the headers hash for all of our non-untangled route handlers.
Sorry, I was being a little general. You definitely want to set the content type to “text/html”.
I came across the article today about how CircleCi mounts all their local state in the global app state. Is anyone currently doing this with om next (or is there a simpler solution even)? https://circleci.com/blog/local-state-global-concerns/
@kenbier: sounds like prefixing query fragments with :ui/* in untangled so they dont go to the server
@therabidbanana, @mahinshaw: Thanks guys - but could someone tell me exactly how to set the content type to "text/html" via :headers
. I might try :headers {:content-type "text/html"}
, but it would probably be wrong. (unfortunately I can't try things out as I type here).
Thanks @mahinshaw - I'm not an experienced web programmer so need to go from examples.