Hey guys,
I'd like to convert Nim to JS during runtime and output as a string rather than a file. The end goal is to have a chrome extension that creates a "nim console" window within chrome dev tools.
Any general guidance one can give here?
I have a basic prototype working where the Nim code typed into a new console window is sent to a local server via websocket, a js file is produced, read, and then that js code is injected in the frontend.
Right, but how would I be able to get javascript produced out of the Nim code this way? I've used PMunch's articles to create a (sort of) Jupyter-Notebook like IDE but not in this manner. I only want to produce the javascript needed so I can inject it into the page.
For things like finding links within a web page, highlighting certain text, etc.