script-lab-2017
script-lab-2017 copied to clipboard
Provide the option to import a snippet into another snippet using the Libraries tab
This would enable splitting up a larger snippet into smaller chunks and also the ability to reuse code across snippets.
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
- Version used:
- Browser Name and version:
- Operating System and version (desktop or mobile):
Useful logs
- [ ] Fiddler traces
- [ ] Console errors
- [ ] Screenshots
- [ ] Clip or GIFs
I agree it would be a cool feature, and it could be useful for a variety of stuff (including dialog API). What is less clear to me is how you'd share such snippet (gist/clipboard), or what happens when you duplicate the snippet. The referencing can get hard to manage. If we really want multiple chunks, I wonder if perhaps we can support multiple script/html/css "files" within the same snippet.
We can chat more about it in person.