diff --git a/tests/index19.html b/tests/index19.html new file mode 100644 index 00000000..f0dc8bef --- /dev/null +++ b/tests/index19.html @@ -0,0 +1,12 @@ + + + + + + +
+
+
+ + + diff --git a/tests/testjs19.nim b/tests/testjs19.nim new file mode 100644 index 00000000..96b0f384 --- /dev/null +++ b/tests/testjs19.nim @@ -0,0 +1,27 @@ +# Import HappyX +import + ../src/happyx + + +# Declare application with ID "app" +appRoutes "app": + "/page1": + tButton: + "goto page2" + @click: + echo 2 + route("/page2") + tA: + "page2 bis" + href:="#/page2" + # !debugCurrent + "/page2": + tButton: + "goto page1" + @click: + echo 1 + route("/page1") + tA: + "page1 bis" + href:="#/page1" + # !debugCurrent