Devcards aims to provide a visual REPL experience for ClojureScript

Is it possible to set up devcards with editable source? (in the browser with auto-reload)


i.e. toggle card source, edit, see realtime results


I seem to remember seeing something like this, but I haven't been able to find a search lead

dpsutton 2018-06-14T13:19:43.000227Z

I get this by default. Is this not your experience?


Nope, I just see the title and mounted component


To be clear, I would like the source to be editable in the browser. It works from my editor.

dpsutton 2018-06-14T13:26:00.000432Z

Oh. That's a bigger feature request


Yeah, just wondering if someone already implemented it somehow.

dpsutton 2018-06-14T13:26:17.000140Z

You would want all your tooling in the browser?


Not all my tooling, just a basic text editor which can be saved to trigger a reload of just that piece of code.


I think it would be a nice way of writing tutorials that are interactive.


If each card was implemented in it's own namespace, I imagine it wouldn't be too hard to implement something like this?

paytonrules 2018-06-14T13:35:48.000023Z

What’s the status with devcards and the latest reagent? It looks like the answer is “don’t’ based on a couple PRs in the issues page. Do we just stay on Reagent 0.7?

bhauman 2018-06-14T15:12:20.000197Z

which PR's are you speaking of?

bhauman 2018-06-14T15:16:30.000315Z

@danielstockton for whats it's worth I really looked at this and feel that editing in an editor is a much better experience even for tutorials. But if what you want is something like an editable clojurescript example you could create a Klipse card


Reconsidering, it might be enough to just display the code without it being editable. Just saves maintaining the real code and 'display' code separately

paytonrules 2018-06-14T15:42:07.000177Z

@bhauman #127 and #123 - although I guess 123 isn’t really about Reagent per-se

bhauman 2018-06-14T15:45:33.000429Z

Hmmm I will investigate