Creating pluggable templates
Templates can be categorized into several types based on their functionality. Each of these types of templates plays a different role within complex applications. The proper combination of these template types can result in highly maintainable and reusable applications. Let's explore the functionality of various template types.
The simplest type of template contains the complete design for each and every screen in the application. These types of templates are not reusable. We can also have template parts that get included into some other main templates. These types of templates are highly reusable across multiple other templates. The header and footer are the most common examples of such templates.
These types of templates are highly adaptable and flexible for the future enhancements or modification of existing features. WordPress provides the capability to create similar types of templates with its pluggable architecture by using action hooks. There is a drastic...