web commit by tuomov: Another approach

master
joey 2007-02-12 08:51:54 +00:00
parent 61d2f8b281
commit 78d8c7ccee
1 changed files with 5 additions and 1 deletions

View File

@ -227,4 +227,8 @@ Also note that an initial "index" is ignored. I.e. a
page "A/B/index.html" is treated as "A/B".
> This is actually a pretty cool hack. I'll have to think about
> whether I like it better than my way though :) --Ethan
> whether I like it better than my way though :) --Ethan
---
How about doing the index stuff only on the output side? (Or does the latter patch do it? I haven't tried them.) That is, render every `foo.type` for the rendered types (mdwn etc.) as `foo/index.html`, generating links to `foo/` instead of `foo.html`, but not earlier than the point where the .html as presently appended to the page name. Then you just flip a build time option on an existing wiki without any changes to that, and the pages appear elsewhere. The `index.type` files might be left out of this scheme, though (and the top-level one, of course, has to). --[[tuomov]]