Closed jeluard closed 9 years ago
Thanks for the feedback Julien - this is a good as place as any to discuss the s.trokes.org site.
Agreed that it would be better to drop the javascript file and have it be auto-generated. But I think doing so in the general case with outside dependencies could be tricky. I think the best long term strategy will be to use @kanaka's clojurescript in clojurescript so that the html could be something like:
<script type="text/javascript" src="http://cdn.elsewhere/cljs-in-cljs.js"></script>
<script type="text/clojurescript" src="my.cljs"></script>
but this is a ways away and so for now I'll leave this issue open in case anyone wants to add feedback or implementation ideas.
Incidentally, @mbostock has expressed some apprehension at having 'bl.ocks.org clones' running on different domains, so I'm probably going to be reimplementing s.trokes.org over the next couple of months. Once I have a prototype, I'll make a new repo for that and we'll move over any of these issues.
Ah I didn't know about this project. Definitively the way to go!
This ticket is about s.trokes.org. I couldn't find a repo for it so creating the ticket here. Sorry if that's not appropriate.
Have you considered allowing creation of s.trokes from clojurescript only (ie without the need to attach the associated javascript)? An option could be to rely on himera and it's hosted counterpart to generate the javascript if it's not yet in the gist.
It would make s.trokes.org even more awesome!