Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support loading GitHub gist files #24

Open
Kerollmops opened this issue Jul 4, 2024 · 1 comment
Open

Support loading GitHub gist files #24

Kerollmops opened this issue Jul 4, 2024 · 1 comment

Comments

@Kerollmops
Copy link

Hey 👋

Would it be possible to support loading the content from a GitHub gist like the Rust playground? Not necessarily being able to edit and save the content to a new gist or anything but simply being able to specify the gist we want to load when we load the page.

Have a nice day 🐑

@alvinhochun
Copy link
Collaborator

It seems that getting the contents of a gist is quite simple, doesn't require an API token and cross-origin seems allowed, so it is likely doable from client side JS. Overriding the initial code can be easily done in playground.vue, though we probably need a loading screen for it. If anyone is interested, feel free to implement it and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants