Fork me on GitHub
#dirac
<
2016-09-30
>
denisj02:09:32

@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 ?

darwin11:09:26

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

denisj11:09:46

Thanks will take a look

darwin11:09:17

here is another example, how I implemented the “envelope” helper: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/toolbox.cljs