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 paths-that-should-be-cached (for/list ([path (in-directory starting-dir)]
#:when (or (preproc-source? path)
(markup-source? path)
(markdown-source? path)
(pagetree-source? path)))
#:when (for/or ([proc (in-list (list preproc-source?
markup-source?
markdown-source?
pagetree-source?))])
(proc path)))
path))
;; if a file is already in the cache, no need to hit it again.

@ -1 +1 @@
1502139238
1502139633

Loading…
Cancel
Save