Renamed find-all matching parameter to matches-p
In response to feedback on PR-78 https://github.com/redline6561/coleslaw/pull/78
This commit is contained in:
parent
7facd55afb
commit
7d26e2bb5a
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ use it as the template passing any RENDER-ARGS."
|
|||
(url (namestring (page-url document))))
|
||||
(write-file (rel-path (staging-dir *config*) url) html)))
|
||||
|
||||
(defun find-all (doc-type &optional (matching (lambda (x) (typep x doc-type))))
|
||||
(defun find-all (doc-type &optional (matches-p (lambda (x) (typep x doc-type))))
|
||||
"Return a list of all instances of a given DOC-TYPE."
|
||||
(loop for val being the hash-values in *site*
|
||||
when (funcall matching val) collect val))
|
||||
when (funcall matches-p val) collect val))
|
||||
|
||||
(defun purge-all (doc-type)
|
||||
"Remove all instances of DOC-TYPE from memory."
|
||||
|
|
Loading…
Add table
Reference in a new issue