3 ms·
I suspect most Clojure web apps are built by smaller teams where the HTML is written by the same developers as the rest of the codebase. Enlive also has a repu
by technomancy 15y ago
I suspect most Clojure web apps are built by smaller teams where the HTML is written by the same developers as the rest of the codebase.
Enlive also has a reputation for using confusing macros and having poor documentation. I've been told it's improved a lot, but it's hard to shake an impression like that sometimes. For better or worse, Hiccup is absolutely _obvious_, and that counts for a lot.
- wink 15y agoMuch more than that I've come to love that fact that it's Clojure and I can iterate over lists for example. It's not spaghetti html wrapped inside $language, it's useful and you can work with it.
- icey 15y agoThis is exactly why I prefer hiccup. I can operate on my interface code using the full power of the language, and it looks just like everything else in my project. That's not to say Enlive isn't capable as well, but when I'm working on my own using Hiccup means one fewer context-switch when thinking about what I'm building.