refactor preheat

pull/155/head
Matthew Butterick 7 years ago
parent aa8313058d
commit c2b95cd876

@ -9,10 +9,11 @@
(define max-places 8) ; number of parallel processes to spawn at a time (define max-places 8) ; number of parallel processes to spawn at a time
(define paths-that-should-be-cached (for/list ([path (in-directory starting-dir)] (define paths-that-should-be-cached (for/list ([path (in-directory starting-dir)]
#:when (or (preproc-source? path) #:when (for/or ([proc (in-list (list preproc-source?
(markup-source? path) markup-source?
(markdown-source? path) markdown-source?
(pagetree-source? path))) pagetree-source?))])
(proc path)))
path)) path))
;; if a file is already in the cache, no need to hit it again. ;; if a file is already in the cache, no need to hit it again.

@ -1 +1 @@
1502139238 1502139633

Loading…
Cancel
Save