This is Karax
buildHtml(tdiv):
button:
text "Say hello!"
proc onclick(ev: Event; n: VNode) =
lines.add "Hello simulated universe"
for x in lines:
tdiv:
text x
RunThis is JS (CoffeeScript) with [simple implementation](https://gist.github.com/al6x/501c12fa9053b425aad276fe422acf6b) render = (lines) -> @button -> @text "Say hello!" @onclick (e) -> lines.add "Hello simulated universe" for x in lines @div -> @text x Run
