On Sep 1, 7:57 pm, Sean Corfield <seancorfi...@gmail.com> wrote: > On Wed, Sep 1, 2010 at 12:33 AM, Laurent PETIT <laurent.pe...@gmail.com> > wrote: > The ideal setup, in my opinion, after using all sorts of different web > frameworks and languages over the last 14 years, is to have all the > HTML in the template - code never generates HTML - and to have *some* > markup in the HTML template to allow: > * dynamic variable substitution > * conditional selection > * looping > * including other templates (or some sort of 'wrapping' to make > layouts with common elements easy to work with) > > Designers find this easy to work with (as long as you keep the dynamic > markup to a minimum). Developers find this easy to work with because > they can keep HTML separate from code (and therefore focus on logic in > their code). >
Personaly I use Hiccup, but I highly recommend that you take another look at Enlive. To me it seems an evolutionary step beyond existing templating systems. There is no logic in the templates at all which makes it super easy for designers. Developers typically manipulate the HTML (entirely in clojure) by setting content based on id or style. You get all the functionality you listed only with nice twists and features. The downside is the learning curve. A good tutorial can be found at: http://github.com/swannodette/enlive-tutorial Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en