Option maps are easier to use when calling functions

... with more than a couple of parameters.
This commit is contained in:
William Roe 2015-02-21 22:15:40 +00:00
parent 0c7743e605
commit 52244956aa
2 changed files with 6 additions and 6 deletions

View file

@ -321,9 +321,9 @@
(rss/make-filtered-channels public config posts-by-tag) (rss/make-filtered-channels public config posts-by-tag)
(println (blue "compiling sass")) (println (blue "compiling sass"))
(sass/compile-sass->css! (sass/compile-sass->css!
(str "resources/templates/" sass-src) {:src-sass (str "resources/templates/" sass-src)
(str "resources/public" blog-prefix "/" sass-dest) :dest-sass (str "resources/public" blog-prefix "/" sass-dest)
ignored-files))) :ignored-files ignored-files})))
(defn compile-assets-timed [] (defn compile-assets-timed []
(time (time

View file

@ -47,9 +47,9 @@
"Given a directory src-sass, looks for all sass files and compiles them into "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 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. " the command. Shows you any problems it comes across when compiling. "
[src-sass [{:keys [src-sass
dest-sass dest-sass
ignored-files] ignored-files]}]
(let [sass-files (find-sass-files src-sass ignored-files)] (let [sass-files (find-sass-files src-sass ignored-files)]
(if (seq sass-files) (if (seq sass-files)
;; I found sass files, ;; I found sass files,