Permalink
Browse files

Better compilation.

  • Loading branch information...
1 parent f008a2a commit 682337af829d439aea49203ecf453fca340d5e83 @r0man committed Jul 22, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/closure/templates/compile.clj
View
12 src/closure/templates/compile.clj
@@ -20,22 +20,22 @@
(extend-type File
Compile
(compile [file]
- (compile-fileset [file])))
+ (compile (.toURL file))))
(extend-type IPersistentSet
Compile
(compile [set]
- (compile (seq set))))
+ (compile-fileset (map soy set))))
(extend-type IPersistentVector
Compile
(compile [vector]
- (compile (seq vector))))
+ (compile (set vector))))
(extend-type ISeq
Compile
(compile [seq]
- (compile-fileset (set (map soy seq)))))
+ (compile (set (map soy seq)))))
(extend-type SoyTofu
Compile
@@ -45,12 +45,12 @@
(extend-type String
Compile
(compile [path]
- (compile (.toURL (File. path)))))
+ (compile (File. path))))
(extend-type URI
Compile
(compile [uri]
- (compile-fileset [(.toURL uri)])))
+ (compile (.toURL uri))))
(extend-type URL
Compile

0 comments on commit 682337a

Please sign in to comment.