Daniel Jomphe a écrit : > Stuart Sierra wrote: > >> Very interesting, Christophe. I've been playing with StringTemplate >> <http://www.stringtemplate.org/> lately, but this separates design >> from code even further. Can it do conditionals, as in "if this >> variable is true, includes this HTML element"? >> > > Therefore, this feels a bit misleading to me: "this separates design > from code even further". I just want to point out StringTemplate helps > separating design from code, but its main goal is separating the View > from Controller and Model in a formally strict way. In the case of > enlive, this main goal is not achieved, so it couldn't be done "even > further". > I think you both aren't talking about the same separation: - (To put it in MVC terms) Enlive separates the View into design (plain html, no extra tags, no $..$) and code (clj) - StringTemplate enforces a strict separation of the View from Model and Controller.
Christophe --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---