Theme Segmentation 2
Saturday, September 30, 2023
Themes should be capable of being segmented into an indefinite amount of theme files and should be capable of being organized into an indefinite amount of subdirectories.
In fact, this segmentation is highly encouraged since it reduces the size of the individual files that make up a theme. When changes are made to a part of a theme, only the files that store the data for that part of the theme are saved. This is important when trying to reduce resource usage and increase performance.
Theme Loading
Theme loading will need to be changed to reflect the new segmentation and organization rules. The theme directory will need to be scanned for files, the files will need to be loaded (keep track of their location relative to the theme directory). The data for each file will need to be observed to determine where to merge the theme data with the other previously loaded data.