Content Management System

Whatever is on your mind, whether Lisp related or not.

Content Management System

Postby jstoddard » Tue Mar 22, 2011 12:16 pm

I threw together a minimalist content management system in Common Lisp using Hunchentoot and CLSQL. If interested you can find it at

It consists of a few hundred lines of not-so-elegant Lisp code -- give me a bit of a break there: It takes time to get over the non-lispy habits I picked up from C and the bad habits I picked up from PHP (as an aside, I didn't realize just how badly PHP was destroying my programming style until I started playing around with Lisp; the language almost seems designed to encourage badly written code). In any case, it works reasonably well. It's powering my website, which formerly used software way too big for the task. I only really need to be able to create/edit pages, categorize them, and upload files.

Next, I guess I need to brush up on my math in order to be able to do anything worthwhile related to my interest in computational physics. Meanwhile I suppose I'll play around with lispbuilder-sdl and perhaps some other graphics libraries to see what I can do for visualization for my some-day-to-be-written physics tools...
Posts: 20
Joined: Fri Jan 28, 2011 6:13 pm

Re: Content Management System

Postby Cantheman » Fri Apr 01, 2011 2:07 am

Thanks for sharing, it's really nice to have real live code besides studying the language.
Btw what environment are you using for dev? I am using Lispbox for now which is pretty ok. Need to learn Emacs better though.
Posts: 3
Joined: Tue Mar 29, 2011 8:09 am

Re: Content Management System

Postby jstoddard » Fri Apr 01, 2011 8:32 am

Emacs with SLIME, which is the same thing Lispbox gives you, I guess. As far as needing to learn Emacs better, I've been using Emacs for at least 13 years and I still need to learn it better. :D You can learn just what you need to get your work done, or you can try to experience more of what it has to offer. Slowly I'm trying to move from the former category to the latter; I just wrote my first ELisp function a week or two ago, for example...
Posts: 20
Joined: Fri Jan 28, 2011 6:13 pm

Re: Content Management System

Postby findinglisp » Sat Jun 04, 2011 6:47 am

You can always learn something more in Emacs.
Cheers, Dave
Slowly but surely the world is finding Lisp.
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: Content Management System

Postby denis » Fri Jun 24, 2011 5:01 am

I have an idea to make CMS in newlisp...
But it won't follow MVC model, I prefer a model that consists of components on a page, where "view" is handled by client-side (javascript), controller is ajax listener (snippets of code on server-side, linked to the components in the browsers page). First time "a loader" will send a page to the browser, and then all the changes will happen with components, with no reloading of the whole page.
Also I would like to have opportunity to add listeners and views code straight to the editing window of components (that will be instead of traditional back-end of classic CMSes).
Thats my vision, let's see how it can be implemented..
Posts: 2
Joined: Tue Apr 19, 2011 3:11 am
Location: Nikel, Murmansk region, Russia

Return to The Lounge

Who is online

Users browsing this forum: No registered users and 3 guests