dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
danielcompton 2016-10-18T23:35:07.001770Z

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

2016-10-18T23:36:04.001771Z

have you seen https://github.com/Odinodin/data-frisk-reagent ?

2016-10-18T23:38:17.001773Z

@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

danielcompton 2016-10-18T23:39:04.001774Z

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

2016-10-18T23:44:57.001777Z

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

2016-10-18T23:45:57.001778Z

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

danielcompton 2016-10-18T23:48:30.001779Z

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

2016-10-18T23:50:28.001780Z

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