#53375Extending includeXY or introducing a new statement to include (sub)directories
Description
I like to organize my js and css into multiple files, like e.g bootstrap and other projects also do. When implementing them via includeCSS / includeJS, you have to do a lot of copy-paste to put each file into that. I’d like to introduce a simpler variation of this, but before making my hands dirty and dig into it, I would like to see what others think about this.
My initial idea: Extending includeCSS.[item] with another option, like .directory = 1 does a) not keep it readable and easy to understand and b) feels a bit misplaced, I thought of adding a new directive; includeCSSDirectory.
page.includeCSSDirectory.10 = fileadmin/templates/main/css
This would auto-load every file in the given directory in alphabetical order. Additionally,
page.includeCSSDirectory.10.recursive = 1
would include files from subdirectories to the given level (here: 1).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.