Przeglądaj źródła

Update NEWS and remove user-defined routing item from docs.

Brit Butler 11 lat temu
rodzic
commit
e26ed4398c
2 zmienionych plików z 8 dodań i 14 usunięć
  1. 8 2
      NEWS.md
  2. 0 12
      docs/hacking.md

+ 8 - 2
NEWS.md

@@ -1,5 +1,10 @@
1 1
 ## Changes for 0.9.4 (2013-05-05):
2 2
 
3
+* **SITE-BREAKING CHANGE**: Coleslaw now supports user-defined routing.
4
+  Instead of hard-coding the paths various content types are stored at,
5
+  they must be specified in the configuration file (.coleslawrc). Just
6
+  copy the `:routing` key from the [example][single_site.rc] to get
7
+  the old behavior.
3 8
 * Coleslaw no longer expects a particular repo layout. Use whatever
4 9
   directory hierarchy you like.
5 10
 
@@ -69,5 +74,6 @@
69 74
 
70 75
 * Initial release.
71 76
 
72
-[hacking_guide]: https://github.com/redline6561/coleslaw/blob/master/docs/hacking.md
73
-[theming_guide]: https://github.com/redline6561/coleslaw/blob/master/docs/themes.md
77
+[hacking_guide]:  https://github.com/redline6561/coleslaw/blob/master/docs/hacking.md
78
+[theming_guide]:  https://github.com/redline6561/coleslaw/blob/master/docs/themes.md
79
+[single_site.rc]: https://github.com/redline6561/coleslaw/blob/master/examples/single-site.coleslawrc

+ 0 - 12
docs/hacking.md

@@ -176,18 +176,6 @@ changes to at least the post templates and the `read-content`
176 176
 function. There may be other areas where it was assumed tags/dates
177 177
 will always be present.
178 178
 
179
-### User-Defined Routing
180
-
181
-There is no reason *coleslaw* should be in charge of the site layout or
182
-should care. If all objects only used the *slug* slot in their `page-url`
183
-methods, there could be a :routing argument in the config containing
184
-a plist of `(:class "~{format string~}")` pairs. A default method could
185
-check the :class key under `(routing *config*)` if no specialized
186
-`page-url` was defined. This would have the additional benefit of
187
-localizing all the site routing in one place. New Content Types would
188
-probably `pushnew` a plist onto the config key in their `enable` function.
189
-This has been implemented on the branch `user-defined-routing`.
190
-
191 179
 ### New Content Type: Pages!
192 180
 
193 181
 Many users have requested a content type PAGE, for static pages. It