diff options
author | Colin Okay <okay@toyful.space> | 2021-05-15 09:13:27 -0500 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2021-05-15 09:13:27 -0500 |
commit | c7761c1ef2a00eb6330bb859fb9e7b4ca1b6b207 (patch) | |
tree | 06da92df84f332aacd3992dfa0975593c519a66b | |
parent | 42d44cdecca91ce281a4caa2629de44159799ce7 (diff) |
added content-with-class
-rw-r--r-- | flexo.lisp | 4 | ||||
-rw-r--r-- | package.lisp | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |