Option maps are easier to use when calling functions

... with more than a couple of parameters.
master
William Roe 9 years ago
parent 0c7743e605
commit 52244956aa

@ -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

@ -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,

Loading…
Cancel
Save