From 52244956aa4d020865b442878627791dd65a536a Mon Sep 17 00:00:00 2001 From: William Roe Date: Sat, 21 Feb 2015 22:15:40 +0000 Subject: [PATCH] Option maps are easier to use when calling functions ... with more than a couple of parameters. --- src/cryogen_core/compiler.clj | 6 +++--- src/cryogen_core/sass.clj | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index 53177f8..0bafd75 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -321,9 +321,9 @@ (rss/make-filtered-channels public config posts-by-tag) (println (blue "compiling sass")) (sass/compile-sass->css! - (str "resources/templates/" sass-src) - (str "resources/public" blog-prefix "/" sass-dest) - ignored-files))) + {:src-sass (str "resources/templates/" sass-src) + :dest-sass (str "resources/public" blog-prefix "/" sass-dest) + :ignored-files ignored-files}))) (defn compile-assets-timed [] (time diff --git a/src/cryogen_core/sass.clj b/src/cryogen_core/sass.clj index ca31e1e..a89411a 100644 --- a/src/cryogen_core/sass.clj +++ b/src/cryogen_core/sass.clj @@ -47,9 +47,9 @@ "Given a directory src-sass, looks for all sass files and compiles them into dest-sass. Prompts you to install sass if he finds sass files and can't find the command. Shows you any problems it comes across when compiling. " - [src-sass - dest-sass - ignored-files] + [{:keys [src-sass + dest-sass + ignored-files]}] (let [sass-files (find-sass-files src-sass ignored-files)] (if (seq sass-files) ;; I found sass files,