Skip to content

Commit

Permalink
fix: #390
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jan 24, 2025
1 parent d5d02c8 commit 273b7ad
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/index19.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="app"></div>
<div>
</div>
<script src="testjs19.js"></script>
</body>
</html>
27 changes: 27 additions & 0 deletions tests/testjs19.nim
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 273b7ad

Please sign in to comment.