diff --git a/project.clj b/project.clj index dc3ad18..4a173e5 100644 --- a/project.clj +++ b/project.clj @@ -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"]]) diff --git a/src/clojure_template_benchmarks/core.clj b/src/clojure_template_benchmarks/core.clj index 3ca92d1..872dc2c 100644 --- a/src/clojure_template_benchmarks/core.clj +++ b/src/clojure_template_benchmarks/core.clj @@ -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)) diff --git a/src/clojure_template_benchmarks/templates/list.enlive b/src/clojure_template_benchmarks/templates/list.enlive new file mode 100644 index 0000000..b40db03 --- /dev/null +++ b/src/clojure_template_benchmarks/templates/list.enlive @@ -0,0 +1 @@ +