cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

Confusion: Should :prefix include the leading slash? #38

Closed nogweii closed 14 years ago

nogweii commented 14 years ago

Currently, if you do set :prefix, "blog" the string "blog" is literally appeneded, without the leading slash.

Personally, I was expecting "/blog/2010/..." but instead I got "blog/2010/...". Is this the intended behaviour? If so, perhaps it should be better documented?

cloudhead commented 14 years ago

hmm yea that's not right.. it should work as expected, with either blog or /blog or even /blog/

The / should be added automatically, and we can do something like prefix.delete('/')