vindarel / lisp-journey

Discovering the Common Lisp ecosystem. https://lisp-journey.gitlab.io/
2 stars 0 forks source link

blog/clog-contest/ #27

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Writing an interactive web app in Common Lisp: Hunchentoot then CLOG - Lisp journey

We want a web app to display a list of data and have an input field to interactively filter it.We’ll start with a simple, regular web app built with Hunchentoot. We’ll have a search input to filter our data, and we’ll see that to be more interactive, typically to filter out the results as the user types, we’ll need more than basic HTTP requests. We’ll need some JavaScript. But we’ll reach this level of interactivity with CLOG (and no JavaScript).

https://lisp-journey.gitlab.io/blog/clog-contest/

shukryzablah commented 2 years ago

I like how you introduced several tools without having to, made it a nicer read.

lesharris commented 2 years ago

Nice write up! Looks like the search function has changed since the one in the article was published in the hunchentoot section.

I had to update the article's code that called that function from (search-products *products* "query") -> (search-products "query") . Also the article doesn't mention welcome.html or search-form.html but I needed to add them to the templates folder.

Not a huge deal but took me a bit to figure out where things went wrong.

vindarel commented 2 years ago

Thanks @lesharris, I corrected the article for search-products and the need of search-form.html. Are you sure about the need of the welcome template? It is commited, but not used it seems.