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

coleslaw.lisp 800B

12345678910111213141516171819202122232425262728293031
  1. (in-package :coleslaw)
  2. (defparameter *storage* nil
  3. "A db-spec for postmodern or a hash-table cache. It is expected that
  4. *storage* has methods for each Generic Function in coleslaw implemented.")
  5. (defgeneric get-credentials (name)
  6. (:documentation "Retrieve the credentials keyed by NAME from *storage*."))
  7. (defgeneric set-credentials (name credentials)
  8. (:documentation "Store the given CREDENTIALS in *storage* under NAME."))
  9. (defun load-config ()
  10. nil)
  11. (defun exit-handler ()
  12. nil)
  13. (defun compile-blog ()
  14. (with-current-directory *temporary-directory*
  15. nil))
  16. ;; TODO: Make update interval a config option.
  17. (defun main ()
  18. (load-config)
  19. (unwind-protect
  20. (loop do (if (blog-update-p)
  21. (compile-blog)
  22. (sleep 600)))
  23. (exit-handler)))