I have a project that does this: https://runno.dev
No shared state between elements, but it’s an interesting idea.
Edit: It runs other languages as well, like Python, C, Ruby.
No shared state between elements, but it’s an interesting idea.
Edit: It runs other languages as well, like Python, C, Ruby.
I've been looking for 'runnable C examples' on my blog.
Do you know if I can integrate this with Hugo easily?
If you’ve got a way to add node packages to your frontend then it is pretty straightforward. If not, using unpkg (https://unpkg.com/) in a script tag should work.
Happy to help you figure it out! Post in the discussion board on GitHub or email me (address on the website).