Fork me on GitHub
#dirac
<
2016-10-18
>
danielcompton23:10:07

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

darwin23:10:17

@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

danielcompton23:10:04

Yeah, that's what I'm using, but I much prefer cljs-devtools output

darwin23:10:57

but the problem is that I had to implement some workarounds, e.g. alter-json-ml-to-fit-in-remaining-budget!

darwin23:10:57

but I think you should be able to reuse cljs-devtools and render JsonML your own way, including on-demand expansion

danielcompton23:10:30

hmm, will take a further look. Doesn't look trivial though 🙂

darwin23:10:28

feel free to ask, I will try to help with specific issues