Replies: 1 comment
-
The answer to my question is in 12-tutorial.lisp. Basically, you just put the routes in the (defun start-app) function. Here is a sample: (defun start-app () Details:
Neat! |
Beta Was this translation helpful? Give feedback.
-
If I have a page with <a href> links that end up at /thislink or /thatlink, how do I define what .lisp file is supposed to "answer" on that route?
The base assumption is that I have created a new project using CLOG Builder and added the files to the .asd file and they are ready to fire up.
I have gone through all the tutorials and can use the templates to create routes, setup packages and separate code into separate files and have everything work. Because I don't fully understand why those routes work the way they do in the templates, the above example is meant to explore the simplest possible scenario to illustrate how routes are handled in CLOG and how it might be possible to have a bunch of CLOG .lisp files doing things in response to those routes.
I have also ready about Hunchentoot routes but I feel that I am missing the gist of how this is supposed to work in CLOG.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions