averyvery / freeway

Simple Routing for EE
43 stars 4 forks source link

Add * option to routes #3

Open averyvery opened 13 years ago

averyvery commented 13 years ago

Right now, if you wanted to write a blog with Freeway, you'd have to account for all possible URLs:

journal => blog
journal/{{post}} => blog/{{post}}
journal/category/{{category}} => blog/category/{{category}}

And this doesn't even account for pagination. Obviously, this sucks super hard — ideally, devs should be able to wildcard the remainder of a pattern to match it:

journal/* => blog/*