You don’t need a framework for this (PHP partials 2/5)
2. Rules & Principles
Partials only work if you treat them as a system, not just includes.
My rules:
• no business logic inside
• explicit inputs only
• shallow nesting
• small, focused files
These constraints keep partials predictable and easy to reason about. Without them, includes quickly turn into hidden complexity.
Structure doesn’t come from tools—it comes from discipline.