2011-05-18 142 views
3

我justed開始嘗試的Compojure我想創建一個語法HTML輸出我已經在幾個例子的Compojure發現:我在哪裏可以找到compojure.html?

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

但我使用的Compojure 0.6.2,似乎這樣的語法不包含在compojure核心中。

如何將它包含在我的項目中?

回答

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

儘管您的主要問題已得到解答,但我還會看看其他選項,以便全面瞭解您可以使用的html生成工具。例如我更喜歡Enlive

不是說要麼自動比其他更好,但更多的選擇是更好的。