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

Allow integration from external web pages (e.g. Rhai book) #2

Open
alvinhochun opened this issue Jul 2, 2020 · 0 comments
Open

Allow integration from external web pages (e.g. Rhai book) #2

alvinhochun opened this issue Jul 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@alvinhochun
Copy link
Collaborator

My idea of such integration would be to provide a page to be embedded via an <iframe>. A piece of JavaScript can be used to set the initial code from the embedding page (probably with postMessage) as the URI might not have enough space to include the full script.

Sometimes the embedding page might want to provide custom modules as Rhai script, or perhaps they have a customized playground build that provides some custom functions in Rust and would like to switch them on or off (e.g. some sections in the Rhai book showcases some engine customizations). The embeddable playground should also provide an option for this.

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

No branches or pull requests

1 participant