|
@@ -15,11 +15,11 @@
|
15
|
15
|
(defgeneric page-path (object)
|
16
|
16
|
(:documentation "The path to store OBJECT at once rendered."))
|
17
|
17
|
|
18
|
|
-(defmethod page-path :around ((object object))
|
19
|
|
- (let ((result (namestring (call-next-method))))
|
20
|
|
- (if (position #\. result)
|
|
18
|
+(defmethod page-path :around ((object t))
|
|
19
|
+ (let ((result (call-next-method)))
|
|
20
|
+ (if (pathname-type result)
|
21
|
21
|
result
|
22
|
|
- (concatenate 'string result ".html"))))
|
|
22
|
+ (make-pathname :type "html" :defaults result))))
|
23
|
23
|
|
24
|
24
|
(defun render-page (content &optional theme-fn &rest render-args)
|
25
|
25
|
"Render the given CONTENT to disk using THEME-FN if supplied.
|