Re: Any tutorials for compiling to JavaScript (specifically DOM)?

2019-10-08 Thread GordonBGood
@dotheda: > Also, I would do WebAssembly but the process seems a lot more complicated, so > I'll wait until it gets proper support, official or not. Any news on that? I don't know about official support, but it has been done often enough, even by @Araq, although many users are on Linux and ther

Re: Any tutorials for compiling to JavaScript (specifically DOM)?

2019-10-07 Thread dotheda
Thank you so very much for this! Also, I would do WebAssembly but the process seems a lot more complicated, so I'll wait until it gets proper support, official or not. Any news on that?

Re: Any tutorials for compiling to JavaScript (specifically DOM)?

2019-10-06 Thread GordonBGood
I haven't actually done it myself, but there seems to be two general approaches: generate the DOM "programmatically using [karax](https://github.com/pragmagic/karax) or just interfacing with the HTML DOM as you seem to be trying to do. Using dom would seem to be pretty straightforward following

Any tutorials for compiling to JavaScript (specifically DOM)?

2019-10-06 Thread dotheda
I'm looking to get into modifying HTML with Nim, but the page for DOM on the Nim site has no real examples. I want to know how to do something basic, like modify text on the page. I can find nothing about this online.