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

Add Support for Multiple Directories Holding CSP Files #337

Closed
rbugajewski opened this issue Jan 28, 2020 · 1 comment
Closed

Add Support for Multiple Directories Holding CSP Files #337

rbugajewski opened this issue Jan 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@rbugajewski
Copy link
Collaborator

From a short look at the Drogon source code currently all CSP files have to reside in one directory. It is not possible to structure them otherwise. This is OK for smaller projects, or projects where you rely on REST APIs instead of a more “traditional” backend with template generation, but it can get confusing very fast when you have more than a dozen pages.

Ideally it would be possible to reference views from subdirectories of the configured views directory. Imagine a subdirectory called components or layouts which holds together building blocks for a traditional HTML website. Whenever I would reference components/AudioPlayer from my Album view (CSP file to be more precise) the framework would descend into subdirectories and also handle this case.

@an-tao an-tao added the enhancement New feature or request label Jan 28, 2020
@rbugajewski
Copy link
Collaborator Author

I guess this is now done with #336, so I will just close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants