* refactor: remove no need first new line * arrange: add indent in HTML files Co-authored-by: Takuya Yamamoto <takuya.yamamoto@tabian.co>
15 lines
303 B
Nim
15 lines
303 B
Nim
include karax / prelude
|
|
|
|
var lines: seq[kstring] = @[]
|
|
|
|
proc createDom(): VNode =
|
|
result = buildHtml(tdiv):
|
|
button:
|
|
text "Say hello!"
|
|
proc onclick(ev: Event; n: VNode) =
|
|
lines.add "Hello simulated universe"
|
|
for x in lines:
|
|
tdiv:
|
|
text x
|
|
|
|
setRenderer createDom
|