Skip to content

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

@alvinhochun

Description

@alvinhochun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions