Webhaven is component-based leveraging Drupal's Single Directory Components (SDC) structure.
This is a modern approach to that groups a component's template, look & feel and logic in one folder. This improves maintainability, reusability, and performance.
Maintainability
Each Webhaven component lives in its own self-contained directory, making it easier to understand and update without affecting other parts of the system.
When design or logic changes are needed, you can work directly within a single folder which reduces the risk of breaking unrelated components and improving overall code clarity.
Reusability
Webhaven components are designed to be modular and adaptable.
Once a component is built, it can be reused across multiple pages. This reduces duplication and ensures visual and functional consistency throughout your Webhaven project.
Performance
By isolating logic and templates within components, Webhaven ensures that only the necessary assets are loaded for each page.
This streamlined approach minimizes unnecessary dependencies, improves caching efficiency, and leads to faster page rendering times.