Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hoàng Minh Thắng
committed
Sep 16, 2012
1 parent
819675d
commit 2ff1adb
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters