Merge branch 'master' into stateful-components2
This commit is contained in:
commit
994a51a1f0
8 changed files with 43 additions and 5 deletions
18
tests/compiler_tests.nim
Normal file
18
tests/compiler_tests.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
include karaxprelude
|
||||
|
||||
block:
|
||||
type
|
||||
TestEnum {.pure.} = enum
|
||||
ValA, ValB
|
||||
|
||||
var e = TestEnum.ValA
|
||||
|
||||
proc renderDom(): VNode {.used.} =
|
||||
result = buildHtml():
|
||||
tdiv():
|
||||
case e
|
||||
of TestEnum.ValA:
|
||||
tdiv: text "A"
|
||||
of TestEnum.ValB:
|
||||
tdiv: text "B"
|
||||
|
||||
|
|
@ -8,6 +8,7 @@ proc exec(cmd: string) =
|
|||
|
||||
proc main =
|
||||
exec("nim js tests/diffDomTests.nim")
|
||||
exec("nim js tests/compiler_tests.nim")
|
||||
exec("nim js examples/todoapp/todoapp.nim")
|
||||
exec("nim js examples/scrollapp/scrollapp.nim")
|
||||
exec("nim js examples/mediaplayer/playerapp.nim")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue