If we directly insert the content, we will create a new page template for each page of the site. But this is fine since we are not duplicating the header, footer and sidebar. To reduce the number of page templates, we can store our content in a database and use a page ID to identify which page content to insert. This ID is usually appended to our URLs of the website. If we do this, we are creating what is known as a Content Management System (CMS). Where the theme is likely to be changed often or people are encouraged to design new themes, a separate directory can be created to hold the various themes. A read me file could be included to credit the designer, or this information could be added to the start of the style sheet as a comment section.
In this tutorial I will introduce the concept of modular design of web templates. This is a way to create easily adaptable and maintainable web templates from simple ones right up to the most complex. A website template is a framework for a website containing the code for web pages, graphic elements and a styling template. Most people think of a template in terms of it‘s visual appearance but this is really the theme.