Skip to content
Browse files

move hicv back to leiningen

  • Loading branch information...
1 parent 819675d commit 2ff1adb3e9869eb690b29a279825365cf902ec38 Hoàng Minh Thắng committed Sep 17, 2012
Showing with 12 additions and 10 deletions.
  1. +12 −0 src/leiningen/hicv.clj
  2. +0 −10 src/to_hiccup/core.clj
View
12 src/leiningen/hicv.clj
@@ -0,0 +1,12 @@
+(ns leiningen.hicv
+ (:use to-hiccup.core))
+
+(defn ^:no-project-needed hicv
+ "Convert html into hiccup and vice verse"
+ [project & [first-arg & rest-args]]
+ (condp = first-arg
+ "2html" (hiccup-files->html-files rest-args)
+ "2clj" (html-files->hiccup-files rest-args)
+ (println "Usage:
+ lein hicv 2html
+ lein hicv 2clj\n")))
View
10 src/to_hiccup/core.clj
@@ -107,13 +107,3 @@
resource-paths)]
(dorun
(map html-file->hiccup-file resource-paths))))
-
-(defn ^:no-project-needed hicv
- "Convert html into hiccup and vice verse"
- [project & [first-arg & rest-args]]
- (condp = first-arg
- "2html" (hiccup-files->html-files rest-args)
- "2clj" (html-files->hiccup-files rest-args)
- (println "Usage:
- lein hicv 2html
- lein hicv 2clj\n")))

0 comments on commit 2ff1adb

Please sign in to comment.
Something went wrong with that request. Please try again.