2008

2007

Implementation of a blog in Common Lisp: Part 2

▁ jan 06 2008

Part 2 of the blog/webapp tutorial is up.

I’d like to point out that I’m learning most of how to do this as I go along, perhaps not the best way to write a tutorial, but I’m having fun, and perhaps someone can make use of it. In other words; feel free to suggest improvements.

Hunchentoot and Elephant is a great combination for creating web applications. Unfortunately, the current methods for querying the database in Elephant is limited, but the roadmap supposedly includes significant improvements of this.

Btw, the Elephant comes with an example of an implementation of a blog, using Hunchentoot and CL-WHO.

← Previous: Implementation of a blog in Common Lisp: Part 1  //  Next: Colorize

comments

Gavin Scott, 12 months ago:

Nice follow-up to part 1, looking forward to part 3!

I ran into a few minor typos in the tutorial that tripped me up, the correct code is in your downloadable files:

  • in the make-url-part definition, should be (char= #- x) instead of (char= #- x)

  • in the first hunchentoot:dispatch-table definition should be “^/view/$” instead of “^/view$”

  • In the Linking From the Front Page section :url-part needs to be added to generate-index-page as well as generate-blog-post-page

vetler, 12 months ago:

Gavin, thanks for the feedback. Most of it should be fixed, although using “^/view/$” works fine for me, and should work as long as the links are right, i.e. http://localhost:8080/view/?hello-blog-world (notice the slash after “view”).

powered by