我justed开始尝试的Compojure我想创建一个语法HTML输出我已经在几个例子的Compojure发现:我在哪里可以找到compojure.html?
(html [:html
[:head
[:title "Page title"]]
...
但我使用的Compojure 0.6.2,似乎这样的语法不包含在compojure核心中。
如何将它包含在我的项目中?
我justed开始尝试的Compojure我想创建一个语法HTML输出我已经在几个例子的Compojure发现:我在哪里可以找到compojure.html?
(html [:html
[:head
[:title "Page title"]]
...
但我使用的Compojure 0.6.2,似乎这样的语法不包含在compojure核心中。
如何将它包含在我的项目中?
(ns your-namespace
(:require hiccup.core))
这是Hiccup的功能,而不是Compojure。
尽管您的主要问题已得到解答,但我还会看看其他选项,以便全面了解您可以使用的html生成工具。例如我更喜欢Enlive
不是说要么自动比其他更好,但更多的选择是更好的。