Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
update misaki.core/call-all-compile, call-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Jan 30, 2013
1 parent 70021c6 commit 6bb1bed
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/misaki/core.clj
Expand Up @@ -176,9 +176,8 @@
[]
(loop [[file & rest-files] (get-template-files), success? true]
(if file
(let [[process-result compile-result] (if (index-file? file)
(index-compile* {:-compiling :all} file)
(compile* {:-compiling :all} file))
(let [compile-fn (if (index-file? file) index-compile* compile*)
[process-result compile-result] (compile-fn {:-compiling :all} file)
result (and success? (or (symbol? process-result)
(true? process-result)))]
(if (stop-compile? compile-result)
Expand All @@ -203,9 +202,8 @@
(post-file? file)
(every? #(true? (first %))
(for [file (map template-name->file (:compile-with-post *config*))]
(if (index-file? file)
(index-compile* (merge optional-config {:-compiling :single}) file)
(compile* (merge optional-config {:-compiling :single}) file))))
((if (index-file? file) index-compile* compile*)
(merge optional-config {:-compiling :single}) file)))

:else process-result))))

Expand Down

0 comments on commit 6bb1bed

Please sign in to comment.