Add support for looking up content by relative path.

This commit is contained in:
Brit Butler 2014-05-07 17:51:49 -04:00
parent 0760459e8f
commit 52b32f459b

View file

@ -79,6 +79,10 @@
"Sort CONTENT in reverse chronological order."
(sort content #'string> :key #'content-date))
(defun find-content-by-path (path)
"Find the CONTENT corresponding to the file at PATH."
(find path (find-all 'content) :key #'content-file :test #'string=))
(defgeneric render-text (text format)
(:documentation "Render TEXT of the given FORMAT to HTML for display.")
(:method (text (format (eql :html)))