I haven't been able to register on nim's forum, I hope you don't mind if I ask my question here in stead.
I've spent several hours trying to figure out how to compile a 'nim js' hello-world with canvas:
import dom
let canvas = document.getElementById("myCanvas").<didnt_find_what_to_put_here>
let ctx = canvas.getContext2d()
proc drawCircle() =
ctx.beginPath()
ctx.arc(100, 100, 50, 0, 2 * PI, false)
ctx.fillStyle = "#02d"
ctx.fill()
ctx.stroke()
window.onload = drawCircle
--
Thanks