开发者

Where can I find compojure.html?

开发者 https://www.devze.com 2023-03-06 17:22 出处:网络
I justed started experimenting with compojure and I\'d like to create HTML output with the syntax I\'ve found in several compojure examples:

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

精彩评论

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

关注公众号