- Issue created by @chrisfromredfin
- πΊπΈUnited States sonfd Portland, ME
I have been thinking about this and I think we want:
- to break the main template into smaller templates
- folks to be able to override the smaller templates without necessarily needing to override the main template
I think the second goal is maybe more of a nice-to-have than a requirement. If the main template just includes a bunch of smaller templates, it should be easier to override it without it being a problem.
I know the point of Single Directory Components is that all of the css, js, etc are all in one directory, but I wonder if using them for the smaller pieces of the main disclosure menu template is the best option, even though I think we'd still keep the css and js all in one place, attached to the main template. Each sub-template could be an SDC, basically a more defined include, and would really just define a template. SDCs would allow us to easily define the smaller templates in a way that would allow any theme to override any one of those templates easily without modifying the main template. π€·