-
Notifications
You must be signed in to change notification settings - Fork 7
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
Takahiro Hozumi
committed
Oct 5, 2012
1 parent
89f75a0
commit f149312
Showing
1 changed file
with
3 additions
and
3 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 | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
(ns leiningen.hicv | ||
(:use hiccup-bridge.core)) | ||
(:require [hiccup-bridge.core :as hic])) | ||
|
||
(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) | ||
"2html" (hic/hiccup-files->html-files rest-args) | ||
"2clj" (hic/html-files->hiccup-files rest-args) | ||
(println "Usage: | ||
lein hicv 2html | ||
lein hicv 2clj\n"))) |