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 963b20810c - Show all commits

View file

@ -8,12 +8,15 @@ appRoutes("app"):
component Nav
component Glass("Blog in a Matrix")
"/<article>":
component Nav
component Glass($article)
# TODO: pass article title to component which renders the article; modify Glass or a new component is needed
# TODO: check if article name exists otherwise route to /404
"/<errorCode>":
component Nav
component Glass("HTTP Error: " & $errorCode)
"/<article>":
component Nav
component Glass($article)
# TODO: pass article title to component which renders the article
# TODO: modify Glass or a new component is needed
notfound:
route "/404"