Templates may be used to enforce compliance with the style guide and to save time. Let's use two simple templates for our class Web site. We will use templates to create index.htm files for the site and for the assignments subdirectory.
The first is the home page template. It is a nearly complete definition of our home page -- the user need only enter his or her name and e-mail address in two spots along with a link to a self-portrait image. This will create the index.htm file for the Web site.
We can use a second template for our assignment home pages. To add a new assignment, one simply copies the commented <tr> definition at the end of the template and enters the assignment number, description and link if there is one. This will create the index.htm file for the assignments subdirectory.
For a large, complex site, we could use a content management system which stores the templates and content in a database.