comicgen icon indicating copy to clipboard operation
comicgen copied to clipboard

require / node version of comicgen

Open pratapvardhan opened this issue 4 years ago • 4 comments

Enable comicgen to used in require('comicgen') and import('comicgen') environments. Probably default document.currentScript.src to http://gramener.com or /

@sanand0 -- is this something you'd like in this project?

pratapvardhan avatar Aug 19 '19 14:08 pratapvardhan

@pratapvardhan What would be some uses of it? Is it to generate the SVG from the server-side? Based on how this would be used, we can prioritize it, and figure out how to structure it.

sanand0 avatar Aug 19 '19 21:08 sanand0

Yes. For now, I see these two.

  • SVG from the server-side
  • Compatible with observablehq notebooks

Later is my primary motivation.

pratapvardhan avatar Aug 20 '19 03:08 pratapvardhan

Got it. I'm not familiar with Observable notebooks -- but that'd be a powerful alternative to what we're doing right now (with Codepen).

Would you like to send a pull request for this, @pratapvardhan? That'll help me understand what code will work. Thanks!

sanand0 avatar Aug 20 '19 03:08 sanand0

A good use case can be to something like this import { Dee } from 'comicgen/react'); Similar same can be implement for various framework. (Angular, Vue etc)

If this is something good to have, i would love to work on it.

reezpatel avatar Nov 23 '19 18:11 reezpatel