Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] [gen] name sub-app classes Foo::Bar::App #2202

Open
postmodern opened this issue Nov 10, 2018 · 0 comments
Open

[feature] [gen] name sub-app classes Foo::Bar::App #2202

postmodern opened this issue Nov 10, 2018 · 0 comments

Comments

@postmodern
Copy link
Contributor

In order to keep module namespaces, I think it would be useful to name the sub-app class ProjectName::AppName::App, where ProjectName is the module name for the whole project and AppName is the module name for the sub-app. This would make it easier to nest models or additional lib code in the sub-app namespace.

Example

$ padrino-gen project foo
$ cd foo/
$ padrino-gen app bar

Would produce a bar/app.rb file beginning with:

module Foo
  module Bar
    class App < Padrino::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant