3 ms·
Nice work. We've ended up working the other way with our application by generating the html from lisp. The advantage for us being that we can use macros (incl
by gibsonf1 18y ago
Nice work. We've ended up working the other way with our application by generating the html from lisp. The advantage for us being that we can use macros (including extensive nesting) to build entire complex webpages from a very small amount of code dynamically.
- dualogy 18y agoYeah I've seen this method around with CL-WHO and similar approaches. I like the fact that this is one of the many things you can do with macros / s-exprs. However, for HTML for some reason I wanna keep this out of my code base. Artificial distinction, granted, and now my way I have "code" inside the "template" rather than the "template" inside the "code". I guess I'm just used to doing things this way. Even though I'd never hand over my HTML to an external designer or even edit it in a visual design tool I wouldn't like (with-html (:body (:head (title "Hello World" etc as my "GUI layer". I haven't quite figured out why :) Anyway, this was fun to write and for the time being will be my preferred way of designing my web apps... ^^ thanks for stopping by though!