开发者

Where can I find compojure.html?

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 synt开发者_如何学运维ax isn't included in compojure core.

How can I include it in my project?


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜