News for hackers. Stuff that matters.
Re:Utterly sensible HTML templating in Common Lisp by xtacy on Tuesday November 16, 2010 @03:37PM (#1911537)
I think there's a difference: Enlive is meant to manipulate the DOM using familiar CSS/jQuery like selectors. The article however, is a way to _write_ the HTML in the first place.

I've myself been using a declarative style HTML output engine that I wrote in Python. It's simple, easier, outputs correct HTML and it merges well with my workflow. I don't have to write HTML, nor JavaScript to programmatically generate what I need. It may sound naive, but I find myself comfortable indenting code in Python than write matching HTML tags. If there are errors, the Python code wouldn't run, but HTML code would still render, though it wouldn't be what I want.

Relevant: http://code.google.com/p/zen-coding/

There are no comments on this comment yet.