by pivo · 14y ago · 0 comments
While I really like the idea of writing HTML in Clojure, I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me.
Has anyone found what they think is a good solution?
Check out Enlive, it solves exactly this problem. HTML/CSS is separate from Clojure code and you fill out templates and stuff via CSS style selectors. It's sweet.
https://github.com/swannodette/enlive-tutorial
https://github.com/cgrand/enlive
Btw I think you can use Enlive with Noir, even though some of the examples from Noir use Hiccup, it's not a requirement.
[1] https://circleci.com [2] https://github.com/edgecase/dieter
Here I gave an overview of my experiment in building a web app entirely in Clojure: http://notehub.org/2012/6/16/how-notehub-is-built