4 ms·
> but in the real world you'll want your HTML templates separate and in a designer or front-end-coder friendly format. For Clojure - it sounds like you're look
by juliangamble 14y ago
> but in the real world you'll want your HTML templates separate and in a designer or front-end-coder friendly format.
For Clojure - it sounds like you're looking for Christophe Grand's work on enlive: https://github.com/cgrand/enlive https://github.com/cgrand/enlive
You can read a tutorial here: https://github.com/swannodette/enlive-tutorial/ https://github.com/swannodette/enlive-tutorial/
- pavelludiq 14y agoThere is also a recent Common Lisp enlive like library called Caramel: https://github.com/pocket7878/Caramel https://github.com/pocket7878/Caramel
- muraiki 14y agoNote that you'll need to change (def base-url "http://news.ycombinator.com/ http://news.ycombinator.com/) to (def base-url "https://news.ycombinator.com/ https://news.ycombinator.com/) in the first example in order for it to work properly.