Permalink
Browse files

Fix precompiles

  • Loading branch information...
1 parent e1f8249 commit dc41971cb3f431bf8b8b866638466be0b219076b @pbiggar pbiggar committed Jan 6, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −1 dieter-core/src/dieter/core.clj
  2. +2 −3 dieter-core/src/dieter/precompile.clj
@@ -86,7 +86,7 @@ ex. (link-to-asset \"javascripts/app.js\") => \"/assets/javascripts/app-12345678
(defn precompile [options] ;; lein dieter-precompile uses this name
- (precompile/precompile [options]))
+ (precompile/precompile options))
(defn init [options]
@@ -29,15 +29,14 @@
(cache/add-cached-uri uncached cached)))))
(defn find-and-cache-asset [& args]
- (apply (ns-resolve 'dieter.core 'find-and-cache-asset)))
+ (apply (ns-resolve 'dieter.core 'find-and-cache-asset) args))
-(defn precompile [options] ;; lein dieter-precompile uses this name
+(defn precompile [options]
(settings/with-options options
(-> (settings/cache-root) (fs/join "assets") fs/deltree)
(if (settings/precompiles)
(doseq [filename (settings/precompiles)]
(->> filename
- (str "./")
(find-and-cache-asset)))
(doseq [asset-root (settings/asset-roots)]
(foreach-file

0 comments on commit dc41971

Please sign in to comment.