I'm writing my first October theme. It's going to actually be a multi-site install (using the multisite plugin) and each site url will run a different theme. The thing is, most of the themes will be based on the initial one I am making but not edited by me but by other people.
I want to separate all the php logic from my theme out of the core pages and partials to avoid complexity. Especially as they will likely edit the files outside of the October environment I don't want to hand them these htm files with this hybrid mix of php code and html. I want to ideally hand them a few folders of files that are as pure html as possible with all the php logic separate in other files I don't need to give them.
Does anyone have a good strategy as to how I could achieve this? Ie maybe hook some kind of functions file that I can "include" into all the pages ?