5 ms·
Lift's templates predate Clojure, let alone Enlive.
by jorgeortiz85 16y ago
Lift's templates predate Clojure, let alone Enlive.
- KirinDave 16y agoI know that Designer-Friendly Templates are new to Lift because I was the guy who told DPP about Enlive, and he said that's what inspired the new hands-off templating. Which is not to say I don't think it's inevitable though. As Lift moves way from XHTML, it made less and less sense to shove in custom tags.
- timclark 16y agoLift templates may predate Clojure and Enlive but the designer friendly variation are a recent development. The designer friendly templates from still appear to need some markup added to the HTML - the lift:surround and other tags. Enlive will let you leave the HTML completely untouched - I'd prefer to use Enlive for that reason, most of my work get arranged by the customer so that I get buckets of HTML produced by external suppliers and modified throughout the project delivery.
- KirinDave 16y agoI think that there are no longer any required non-html tags in Lift, as of 2.2's final release. The surround stuff goes in as a fake CSS class now, which is a fairly unobtrusive way to do it.