renee-project/renee — Issue #1: Provide an easy way to split routes into multiple files
Author: linopolus
Created: 2011-10-15 08:13:50+00:00
State: open

Hi
Renee looks really great! I don't know if theres a way already, but at least I couldn't find one in the docs, so I think I just request it here and if it is already there, you can just tell me.
So, my request is that there should be an easy way to split routes into multiple files. I think of it like this:
`config.ru`:

```ruby
require 'renee'
require 'routes/articles'
require 'routes/users'

run Renee {
path('users') { Users }
path('articles') { Articles }
}
```

`routes/articles`:

```ruby
class Users
path('new') { foobar }
end
```

Pretty sure you have a better idea of an API, I just wanted to clarify what I want.
Would be awesome!
linopolus