padrino/padrino-framework — Issue #741: Change generators to create namespaced applications
Author: nesquena
Created: 2011-12-29 21:58:58+00:00
State: open

@achiu had an idea to create applications differently.

`padrino g project demo => Demo::App`
`padrino g app stuff => Stuff::App`

Basically it would look like:

```ruby
module Demo
class App < Padrino::Application
# app here
end
end
```

and then mount with:

```
Padrino.mount(Demo::App).at('/')
Padrino.mount(Stuff::App).at('/'stuff)
```

This allows apps to be properly namespaced into modules. Thoughts @DAddYE @skade @joshbuddy