caveman icon indicating copy to clipboard operation
caveman copied to clipboard

README: routes are to be defined in src/web.lisp

Open vindarel opened this issue 8 years ago • 2 comments

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 !

vindarel avatar Dec 26 '16 23:12 vindarel

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.

knobo avatar Jan 02 '17 10:01 knobo

Thank you ! I would definitely welcome that in the readme or future tutorial.

vindarel avatar Jan 02 '17 15:01 vindarel