Question

I justed started experimenting with compojure and I'd like to create HTML output with the syntax I've found in several compojure examples:

(html [:html
        [:head
          [:title "Page title"]]
...

But I'm using compojure 0.6.2 and it seems like this syntax isn't included in compojure core.

How can I include it in my project?

Was it helpful?

Solution

(ns your-namespace
  (:require hiccup.core))

OTHER TIPS

That's a feature of Hiccup, not Compojure.

While your primary question has been answered, I would also look at other options just to fully learn what you have available for html generation tools. For example I prefer Enlive

Not to say either is automatically better than the other, but more options is better.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top