Open kelexel opened 11 years ago
So basically, you want the ability to embed the a tinker, right? Would a url such as http://tinker.io/...../preview
(unsure about the name) be acceptable do you? That could be loaded inside an iframe then. I think calling through XHR might br tricky, for now, until the API is exposed and you can simply request a tinker's details.
The API is coming soon enough though, and you'll be able to fetch the actual details by requesting a path that looks something like http://api.tinker.io/tinkers/<hash>/<revision>
. Perhaps this should also (optionally) require the fully rendered html for the tinker, unsure about that at the moment, but might be handy for previewing purposes.
Would be great if you could access the Result tab directly, i.e.: to include one tinker's Result tab as content (loaded via iframe, or used as test result to an XHR call) in another tinker..