News for hackers. Stuff that matters.
Re:Utterly sensible HTML templating in Common Lisp by rorrr on Tuesday November 16, 2010 @03:10PM (#1911418)
Sensible html templating exists already. It's called HAML.

http://haml-lang.com/

Re:Utterly sensible HTML templating in Common Lisp by sgrove on Tuesday November 16, 2010 @03:19PM (#1911453)
Actually, while developing this I was really struck by the similarities. With the automatic indenting in emacs for lisp (really quite good), it looks very similar, and it's impossible to leave a tag unclosed, but there's a further gain for using parentheses in that with paren-highlighting, you can tell exactly which tag your in. While I converted several dozen pages to this system from straight html, I was saved again and again by this.

HAML's great, and I disagree with the other "I hate haml" post on the frontpage today, but this approach actually alleviates the issues pointed out with haml's whitespace-is-meaningful approach.

Anyway, it's all in good fun.

Re:Utterly sensible HTML templating in Common Lisp by rapind on Tuesday November 16, 2010 @06:00PM (#1912091)
Yup I'm a huge haml fan, and saw the similarities. I thought your post was great. Very clean, and you can keep optimizing it. I'm learning CL right now and this added some fuel to the motivation fire ;)