Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.

indices.lisp 561B

123456789101112131415161718
  1. (in-package :coleslaw)
  2. (defgeneric create-index (name ids dates urls)
  3. (:documentation "Create an index in *storage* with the given NAME, post IDs,
  4. post DATEs and post URLs."))
  5. (defgeneric get-index (name)
  6. (:documentation "Retrieve the index matching NAME from *storage*."))
  7. (defgeneric add-to-index (index post)
  8. (:documentation "Add the given POST to INDEX."))
  9. (defgeneric remove-from-index (index post)
  10. (:documentation "Remove the given POST from INDEX."))
  11. (defgeneric render-index (index)
  12. (:documentation "Generate the final HTML for INDEX."))