This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-14
Channels
- # beginners (110)
- # boot (50)
- # cider (29)
- # cljs-dev (80)
- # cljsrn (10)
- # clojure (54)
- # clojure-italy (3)
- # clojure-korea (24)
- # clojure-russia (50)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (67)
- # clojurebridge (14)
- # clojurescript (118)
- # component (3)
- # cursive (11)
- # datomic (28)
- # dirac (31)
- # emacs (45)
- # flambo (2)
- # hoplon (53)
- # immutant (3)
- # jobs (5)
- # mount (8)
- # off-topic (10)
- # om (5)
- # onyx (52)
- # other-languages (2)
- # parinfer (1)
- # pedestal (1)
- # proton (39)
- # protorepl (2)
- # re-frame (22)
- # remote-jobs (1)
- # ring (13)
- # ring-swagger (2)
- # test-check (9)
- # untangled (28)
- # vim (12)
@darwin can you give me some pointers on how to return a hiccup representation from cljs-devtools, given a data structure?
I'm not quite sure where to get started
@danielcompton have you seen this document? https://docs.google.com/document/d/1FTascZXT9cxfetuPRT2eXPQKXui4nWFivUnS_335T3U
Ohhhhh
And the Chrome devtools renders JsonML
Is there a way to get at the hiccup before it's converted?
I've read that document
I'm just not quite sure what the function entry point is
look here: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/formatters/core.cljs
those functions are set into our formatter object here: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/formatters.cljs#L61-L63
I can see all the pieces, but I'm not sure what I would call to put it all together?
that header might contain "object references” which you might want to embed inline and call header-api-call
on them
also you might want to ask if given value has “body” part by calling has-body-api-call
Will it work to do this in an application that is currently using devtools?
I’m not aware of any global state which would interfere with calls from custom formatter
btw. why don’t you use window.devtoolsFormatters
directly? you would render all formatters potentially installed
how would I use that?
btw. don’t forget to properly pass configObject down when inlining or expanding, cljs-devtools rely on it (there we store our “continuation” state)
Where does configObject come from?