summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2021-05-15 09:13:27 -0500
committerColin Okay <okay@toyful.space>2021-05-15 09:13:27 -0500
commitc7761c1ef2a00eb6330bb859fb9e7b4ca1b6b207 (patch)
tree06da92df84f332aacd3992dfa0975593c519a66b
parent42d44cdecca91ce281a4caa2629de44159799ce7 (diff)
added content-with-class
-rw-r--r--flexo.lisp4
-rw-r--r--package.lisp1
2 files changed, 5 insertions, 0 deletions
diff --git a/flexo.lisp b/flexo.lisp
index b9c820f..480ba05 100644
--- a/flexo.lisp
+++ b/flexo.lisp
@@ -244,6 +244,10 @@ artifact tables have changed."
:when (funcall pred instance)
:collect instance)))
+(defun content-with-class (class)
+ "Return all content that has been classified with CLASS."
+ (find-content (lambda (ob) (typep ob class))))
+
(defun lookup-content (key)
"Looks up KEY in *CONTENT*. key cna be a PATHNAME or a KEYWORD"
(when *content*
diff --git a/package.lisp b/package.lisp
index d16ffca..b400939 100644
--- a/package.lisp
+++ b/package.lisp
@@ -14,6 +14,7 @@
#:build-and-publish
#:content
#:content-keywords
+ #:content-with-class
#:content-with-filepath-like
#:content-with-tags
#:define-lass-sheet