After studying how the TemplateManifest works, is there any particular reason why we can't instead have the ->handleFile() method derive the "type" (e.g. "Includes" or "Layout") straight from the base directory within the root of the template directory instead of the immediate parent of the template file? The latter method prevents you from having sub-directories for layouts and only affects layouts. This doesn't affect includes at all, it appears, since I'm able to place those anywhere I want and they'll still get incorporated into the final template.
This would be extremely useful since larger sites with a reasonably large number of custom layouts could benefit from a little more organization. This shouldn't deviate from convention per se, since you'd still have to have the layout file somewhere underneath the base "Layout" directory.
e.g.
/themes/mysite/templates/Layout/SubDirectory/MyPage.ss
... instead of this, along side potentially 20 other unrelated layouts that belong to the same theme:
/themes/mysite/templates/Layout/MyPage.ss
Just wondering if there are any thoughts on this and if this is the sort of change anyone would be interested in or particularly against for any specific technical reason. Thanks!
- Patrick