-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPA example does not compile 🐛 #231
Comments
Please use this way instead # declare path params
pathParams:
paramName int: # assign param name with `int` type
optional # param is optional
mutable # param is mutable variable
default = 100 # default param value is 100 I'll fix this in docs |
Not sure if I should open a new issue as this is somewhat related. import happyx
# declare path params
pathParams:
paramName int: # assign param name
optional # param is optional
mutable # param is mutable variable
default = 100 # default param value is 100
appRoutes "app":
"/":
"hello"
"/<paramName>":
{paramName} The path |
How you launch it? |
Oh! You are suppose to keep the |
@Ethosa , quick question: why |
@veksha |
@Ethosa i see it in SPA, i just don't know why it is there. maybe we can remove it somehow? |
@veksha I think that it can be removed with |
@Ethosa It leads to confusion and makes links longer than necessary. |
@veksha @array-in-a-matrix Ok, in next commit this possible |
Small note: this will possible only with |
Wow a quick change! Thank you! |
Describe the bug 🐛
The SPA example using routes does not build.
Error:
To Reproduce 👨🔬
hpx create --kind=SPA --name=app
(with or without tailwindcss)main.nim
with the SPA example from the documentation:hpx dev
.Expected behavior 🤔
Successful compilation and a development website hosted at localhost.
Screenshots 🖼
If applicable, add screenshots to help explain your problem.
N/A
Please complete the following information 📃
Additional context ✌
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: