ghinda / jotted

Environment for showcasing HTML, CSS and JavaScript, with editable source.
https://ghinda.net/jotted/
MIT License
491 stars 36 forks source link

Support for multiple files #22

Closed naeemulhaq1 closed 7 years ago

naeemulhaq1 commented 7 years ago

Can we add support for multiple files (js, css), something like thimble.mozilla.org or plnkr.co?

ghinda commented 7 years ago

This would require lots of core and UI changes, so I'm not planning on implementing it right now.

Thanks for the suggestion. If more people ask for it, I'll re-open.

jasonday commented 5 years ago

I think this would be possible by adding the following options:

styles: [],
scripts: []

with urls as comma separated arrays. Then on template render, include these elements in the iframe. I haven't had time to look at the code in depth, but this seems like a relatively simple addition,