Big update! This moves the generated files (app.js, index.html, etc) into an external file, so users can change that file's contents without touching up the plugin code.
The main motivation for this was enabling a library of common FramerJS functions I use. When configured, sketch-framer now downloads a remote library and includes it in index.html.
(We could also use this so stop curl'ing Framer remotely and just including it in the include file?)
Thanks for this. I was actually planning on embedding framer.js, so your approach moving the scripts to a new file makes a lot of sense in this scenario.
Big update! This moves the generated files (app.js, index.html, etc) into an external file, so users can change that file's contents without touching up the plugin code.
The main motivation for this was enabling a library of common FramerJS functions I use. When configured, sketch-framer now downloads a remote library and includes it in index.html.
(We could also use this so stop curl'ing Framer remotely and just including it in the include file?)