万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・寄付お願いします
    YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
    BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
    c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1

karax

include karax / prelude
from future import `=>`

var lines: seq[kstring] = @[]

proc createDom(): VNode =
  result = buildHtml(tdiv):
    text "Name:"
    input(class = "HOGE", id = "hoge1")
    input(class = "HOGE", id = "hoge2")
    button(onclick = () => lines.add "Hello simulated universe"):
      text "Submit"

    for x in lines:
      tdiv:
        text x

setRenderer createDom
tools/karun -r e test.nim