Hacker News new | past | comments | ask | show | jobs | submit login
Functional HTML templating with Clojure+Enlive+Compojure (github.com/swannodette)
69 points by swannodette on March 14, 2010 | hide | past | favorite | 8 comments



I cover scraping Hacker News and the New York Times. The templating examples show how Enlive keeps a clean separation between HTML and code. Template inheritance is just function composition.


So beautiful :)

Edit: the tutorial is very well written; I can follow it even without firing up the repl or anything like that (given I do have some background already).

Edit2: thank you swannodette!


Thanks for checking it out :)


I've been using enlive for a "learning clojure" project myself and love the approach it takes.


also jrockway's http://search.cpan.org/~jrockway/Template-Refine-0.02/ works similarly. I've used it before in some perl stuff.


I haven't tried this yet but the docs look awesome. The Clojure community is attracting a lot of creative developers and projects.


Oh my god yes! This is exactly the kind of tempting I've been gravitating towards lately. In Lisp, with macros no less! Thank you so much for putting this tutorial together.


This is beautiful. I've heard a lot about Clojure but, alas, I've been too lazy to really check it out.

This tipped my interest, kudos!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: