enlive stubs

This commit is contained in:
Chris Allen 2013-01-30 00:39:35 -08:00
parent 4e601cc4ab
commit c9070ae749
4 changed files with 12 additions and 2 deletions

View file

@ -5,8 +5,9 @@
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main clojure-template-benchmarks.core
:dependencies [[org.clojure/clojure "1.4.0"]
[criterium "0.3.1"]
[hiccup "1.0.2"]
[clabango "0.4"]
[criterium "0.3.1"]
[enlive "1.0.0"]
[hiccup "1.0.2"]
[stencil "0.3.0"]
[tinsel "0.4.0"]])

View file

@ -59,6 +59,13 @@
(deftemplate simple-tinsel [[:span {:class "foo"}]] [] (has-class? "foo") (set-content bar))
(deftemplate list-tinsel [[:ul]] [ceil] (tag= :ul) (set-content (for [x (range 1 ceil)] [:li x])))
(defn simple-enlive []
(str ""))
(defn list-enlive [ceil]
(str ""))
(defn -main [& args]
;; (println (simple-hiccup))
;; (println (simple-clabango-no-fd))

View file

@ -0,0 +1 @@
<ul></ul>

View file

@ -0,0 +1 @@
<span class="foo"></span>