File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/clj/clj_html_compressor
test/clj/clj_html_compressor Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- (defproject clj-html-compressor " 0.0 .1"
1+ (defproject clj-html-compressor " 0.1 .1"
22 :description " Clojure library for html compressing"
33 :url " https://github.com/Atsman/clj-html-compressor"
44 :author " Aleh Atsman (http://www.alehatsman.com)"
Original file line number Diff line number Diff line change 6969 compressor))
7070
7171(defn compress
72- ([html] (compress {} html ))
73- ([config html] (let [config (prepare-config config)
72+ ([html] (compress html {} ))
73+ ([html config ] (let [config (prepare-config config)
7474 compressor (html-compressor config)]
7575 (.compress compressor html))))
Original file line number Diff line number Diff line change 9696 (doseq [test-case test-cases]
9797 (let [sourceHtml (read-file (:source test-case))
9898 resultHtml (read-file (:result test-case))]
99- (is (= resultHtml (compress (:config test-case) sourceHtml ))
99+ (is (= resultHtml (compress sourceHtml (:config test-case)))
100100 (:title test-case))))))
You can’t perform that action at this time.
0 commit comments