This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-30
Channels
- # bangalore-clj (1)
- # beginners (9)
- # boot (51)
- # cider (20)
- # cljs-dev (419)
- # clojars (1)
- # clojure (338)
- # clojure-brasil (64)
- # clojure-dev (7)
- # clojure-greece (2)
- # clojure-italy (3)
- # clojure-russia (10)
- # clojure-spec (127)
- # clojure-uk (12)
- # clojurebridge (2)
- # clojurescript (132)
- # core-async (8)
- # cursive (37)
- # datomic (34)
- # dirac (5)
- # events (1)
- # funcool (3)
- # hoplon (39)
- # jobs (3)
- # leiningen (3)
- # off-topic (16)
- # om (44)
- # onyx (7)
- # pedestal (20)
- # protorepl (1)
- # random (1)
- # re-frame (64)
- # reagent (6)
- # specter (4)
- # test-check (9)
- # untangled (17)
- # vim (4)
@darwin we work with utc based dates a lot (via cljs-time and in turn goog.dateUtcDateTime) for serialisation we have a custom reader/writer so instead of #inst .... we register our own #utc tag-parser ... however devtools also uses this format which makes interpreting the dates difficult. Is there a way we can add our own custom formatter for devtools to use ?
@denisj: have you seen this? https://github.com/binaryage/cljs-devtools-sample/blob/5d785aec05641b0e199fb4a524fad1f81ba0f54b/src/demo/devtools_sample/core.cljs#L37-L42
you can use IFormat to define your own markup for custom formatting, alternatively you can also override IPrintWithFormat, which is used by cljs printing machinery and and cljs-devtools will display it as well
here is another example, how I implemented the “envelope” helper: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/toolbox.cljs