[Initialize Repository
clinton@unknownlamer.org**20080927192910] {
addfile ./books.lisp
addfile ./rss.lisp
adddir ./templates
addfile ./templates/footer.html
addfile ./templates/header.html
addfile ./update-rss-binary
addfile ./update.sh
hunk ./books.lisp 1
-
+;; (((author name as symbols)
+;; "description"
+;; ("book name" :fiction-or-nonfiction rating/10 "description")))
+
+(asdf:oos 'asdf:load-op :split-sequence)
+
+(in-package :cl-user)
+
+(defparameter *book-pathname*
+ #p"/home/clinton/html/muse/src/unknownlamer.org/book-list.lisp")
+
+(defparameter *muse-pathname*
+ #p"/home/clinton/html/muse/site/unknownlamer.org-repo/Book List.muse")
+
+;; need to collapse whitespace in descriptions
+
+;; (defun collapse-whitespace (string)
+;; (format nil "~{~A ~}"
+;; (split-sequence:split-sequence-if
+;; (lambda (char) (member char '(#\space #\newline))) string
+;; :remove-empty-subseqs t)))
+
+(defun collapse-whitespace (string)
+ string)
+
+
+(defun print-book-entry (book &optional (stream t))
+ (labels ((ratings-stars (rating)
+ (labels ((stars (rating)
+ (if (> rating 0)
+ (make-string rating :initial-element #\bullet)
+ nil)))
+ (when rating
+ (format nil "