Creating pluggable and extendable 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. 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.
Pluggable or extendable templates
These types of templates are highly adaptable and flexible for future enhancements or modification of existing features. In web applications, we use a technique similar to inheritance in order to provide extendable templates...