Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚开始尝试使用 compojure,我想使用我在几个 compojure 示例中找到的语法创建 HTML 输出:
(html [:html [:head [:title "Page title"]] ...
但是我使用的是 compojure 0.6.2,似乎这种语法不包含在 compojure 核心中。
我怎样才能将它包含在我的项目中?
(ns your-namespace (:require hiccup.core))
这是Hiccup的一个功能,而不是 Compojure。
虽然您的主要问题已得到解答,但我还会查看其他选项,以充分了解您可用于 html 生成工具的内容。例如我更喜欢Enlive
并不是说任何一个都比另一个更好,而是更多的选择更好。