caveman
caveman copied to clipboard
README: routes are to be defined in src/web.lisp
Just a note to say that in the tutorial.
It would have saved me quite some time. Routes didn't work in views.lisp with a message I didn't understand and I finally found it in the quickdocs-server example. I'm new to CL and willing to get through starting-up difficulties.
Thanks !
defroute
depends on a object of type ningle:<app>
, that should be defined in the same package you call defroute
from. the *web*
variable is defined in your "webapp-name".web package. In views.lisp, you are in a different package: "webapp-name".view There are no ningle:<app>
objects created in this package, thus defroute does not work.
Thank you ! I would definitely welcome that in the readme or future tutorial.