riju icon indicating copy to clipboard operation
riju copied to clipboard

Support passing the code as a query param in the URL

Open PIG208 opened this issue 1 year ago • 1 comments

To quickly open the playground with some code, a useful feature would be passing the code text in the URL as a query parameter.

Let's say I have some python code:

num = 42
print(f"Hello {num}")

I can base64 encode this code-block programmatically, so that I can generate a link to the playground with all the code.

PIG208 avatar Oct 02 '23 21:10 PIG208

Yep, that makes sense. Just FYI, the build system for Riju has aged and it is not currently in a state where changes can be deployed, but as soon as I am able, I will be resolving that problem (which is actually a large horde of smaller problems) and making it possible to contribute again.

raxod502 avatar Oct 13 '23 03:10 raxod502