Merge branch 'master' into experimental
This commit is contained in:
commit
331cc94b2c
2 changed files with 5 additions and 6 deletions
4
NEWS.md
4
NEWS.md
|
@ -11,7 +11,7 @@
|
|||
* **SITE-BREAKING CHANGE**: Coleslaw now supports user-defined routing.
|
||||
Instead of hard-coding the paths various content types are stored at,
|
||||
they **must** be specified in the configuration file (.coleslawrc).
|
||||
Just copy the `:routing` key from the [example][single_site.rc] to
|
||||
Just copy the `:routing` key from the [example][example.rc] to
|
||||
get the old behavior.
|
||||
* **SITE-BREAKING CHANGE**: Coleslaw's multi-site support has changed.
|
||||
Instead of having a single .coleslawrc in the user's home directory
|
||||
|
@ -98,4 +98,4 @@
|
|||
|
||||
[hacking_guide]: https://github.com/redline6561/coleslaw/blob/master/docs/hacking.md
|
||||
[theming_guide]: https://github.com/redline6561/coleslaw/blob/master/docs/themes.md
|
||||
[single_site.rc]: https://github.com/redline6561/coleslaw/blob/master/examples/single-site.coleslawrc
|
||||
[example.rc]: https://github.com/redline6561/coleslaw/blob/master/examples/example.coleslawrc
|
||||
|
|
|
@ -35,10 +35,9 @@
|
|||
(error "No routing method found for: ~A" class-name)))))
|
||||
|
||||
(defmethod page-url :around ((document t))
|
||||
(let ((result (call-next-method)))
|
||||
(if (pathname-type result)
|
||||
(make-pathname :defaults result)
|
||||
(make-pathname :type "html" :defaults result))))
|
||||
(let* ((result (call-next-method))
|
||||
(type (or (pathname-type result) "html")))
|
||||
(make-pathname :type type :defaults result)))
|
||||
|
||||
(defgeneric render (document &key &allow-other-keys)
|
||||
(:documentation "Render the given DOCUMENT to HTML."))
|
||||
|
|
Loading…
Add table
Reference in a new issue