|
|
|
|
35
|
(error "No routing method found for: ~A" class-name)))))
|
35
|
(error "No routing method found for: ~A" class-name)))))
|
36
|
|
36
|
|
37
|
(defmethod page-url :around ((document t))
|
37
|
(defmethod page-url :around ((document t))
|
38
|
- (let ((result (call-next-method)))
|
|
|
39
|
- (if (pathname-type result)
|
|
|
40
|
- (make-pathname :defaults result)
|
|
|
41
|
- (make-pathname :type "html" :defaults result))))
|
|
|
|
|
38
|
+ (let* ((result (call-next-method))
|
|
|
39
|
+ (type (or (pathname-type result) "html")))
|
|
|
40
|
+ (make-pathname :type type :defaults result)))
|
42
|
|
41
|
|
43
|
(defgeneric render (document &key &allow-other-keys)
|
42
|
(defgeneric render (document &key &allow-other-keys)
|
44
|
(:documentation "Render the given DOCUMENT to HTML."))
|
43
|
(:documentation "Render the given DOCUMENT to HTML."))
|