O'Reilly logo

Web Development with Clojure by Dmitri Sotnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Selmer

In Chapter 2, Clojure Web Stack, I mentioned that there’s a number of templating languages available for Clojure. In this section we’ll look at the Selmer engine and see what’s involved in converting our picture gallery to use it instead of Hiccup.[55]

The reason for picking Selmer over some of the more popular alternatives, such as Enlive, is its ease of use and familiarity. Enlive has a steep learning curve and can be difficult to master.

On the other hand, Selmer is based on the Django templating engine.[56] If you’re already familiar with Django or similar templating languages, you should feel right at home. Another advantage to using Selmer is that it’s fast.

What’s Different about Selmer?

Hiccup is a nice and simple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required