Skip to content

Commit

Permalink
move hicv back to leiningen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoàng Minh Thắng committed Sep 16, 2012
1 parent 819675d commit 2ff1adb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 12 additions & 0 deletions 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")))
10 changes: 0 additions & 10 deletions src/to_hiccup/core.clj
Expand Up @@ -107,13 +107,3 @@
resource-paths)] resource-paths)]
(dorun (dorun
(map html-file->hiccup-file resource-paths)))) (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.