News for hackers. Stuff that matters.
Re:Utterly sensible HTML templating in Common Lisp by KirinDave on Tuesday November 16, 2010 @07:29PM (#1912371)
Or don't template at all. Let your designers design documents, then you write code to modify the markup at key integration points:

https://github.com/cgrand/enlive

This has some really nice properties:

1. The only thing your devs and designers need to agree on is some basic semantic markup and tag IDs. Then they can make a full comp (complete with sample data) for their purposes. You simply rewrite that data.

2. The approach is very declarative, which makes it a lot easier to reason about what is actually being shown and what is actually changing.

3. It's amenable to all the same functional properties of the sexp->xml stuff that you see here.

Enlive's approach is a nearly 100% win for doing site templating over these sorts of sexp->xml libraries.

There are no comments on this comment yet.