This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-18
Channels
- # aleph (59)
- # beginners (21)
- # bigdata (1)
- # boot (110)
- # cider (7)
- # clara (1)
- # cljs-dev (160)
- # cljsjs (3)
- # clojars (10)
- # clojure (122)
- # clojure-czech (2)
- # clojure-dusseldorf (5)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-korea (5)
- # clojure-russia (13)
- # clojure-spec (15)
- # clojure-uk (78)
- # clojurebridge (1)
- # clojurescript (196)
- # core-async (6)
- # core-logic (27)
- # cursive (11)
- # data-science (2)
- # datomic (45)
- # dirac (9)
- # emacs (2)
- # funcool (8)
- # hoplon (16)
- # immutant (13)
- # jobs (1)
- # klipse (11)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (3)
- # om (40)
- # onyx (31)
- # pedestal (25)
- # re-frame (55)
- # ring (1)
- # ring-swagger (1)
- # rum (4)
- # specter (1)
- # sql (2)
- # untangled (30)
- # vim (12)
- # yada (12)
I'd quite like to use the cljs-devtools formatter to render some data in a browser window (outside the console), is there a good starting point in the devtools code for this? I've taken a look, but am not quite sure where to start
have you seen https://github.com/Odinodin/data-frisk-reagent ?
@danielcompton if you wanted to leverage cljs-devtools code I would recommend implementing own renderer for JsonML, similar way as DevTools does, the custom formatters api is described here: https://docs.google.com/document/d/1FTascZXT9cxfetuPRT2eXPQKXui4nWFivUnS_335T3U
Yeah, that's what I'm using, but I much prefer cljs-devtools output
ok, you could start here: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/formatters/core.cljs#L20-L44
but the problem is that I had to implement some workarounds, e.g. alter-json-ml-to-fit-in-remaining-budget!
but I think you should be able to reuse cljs-devtools and render JsonML your own way, including on-demand expansion
hmm, will take a further look. Doesn't look trivial though 🙂