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 🙂
feel free to ask, I will try to help with specific issues