Switch to single page application #2

Merged
array-in-a-matrix merged 8 commits from hpx-spa into main 2024-01-08 21:04:02 -05:00
Showing only changes of commit 7d5840b6fb - Show all commits

View file

@ -2,11 +2,10 @@ import happyx
component NavButton:
text: string
path: string
path: cstring = "/"
`template`:
tLi(class="list-item cursor-pointer text-white mx-2 my-2 ring-1 ring-white/20 hover:ring-white/50 rounded"):
tButton:
{self.text}
@click:
route({self.path})
tLi(class="list-item cursor-pointer text-white mx-2 my-2 ring-1 ring-white/20 hover:ring-white/50 rounded"):
tButton:
{self.text}
@click:
route self.path