* refactor: remove no need first new line * arrange: add indent in HTML files Co-authored-by: Takuya Yamamoto <takuya.yamamoto@tabian.co>
12 lines
216 B
Nim
12 lines
216 B
Nim
include karax / prelude
|
|
import random
|
|
|
|
proc createDom(): VNode =
|
|
result = buildHtml(tdiv):
|
|
if rand(100) <= 50:
|
|
text "Hello World!"
|
|
else:
|
|
text "Hello Universe"
|
|
|
|
randomize()
|
|
setRenderer createDom
|