Websites often try to produce a consistent look and layout across several pages. Although the content displayed on each page changes, things such as a logo, navigation links, other graphics and background images may be constant for each page throughout the site. When such a site requires one of these consistent elements to be changed it can prove time-consuming if each page has been separately constructed. One solution to this problem is to produce a template that contains all of the core elements of the site. There would be a place in the template where the content for a page can be inserted. The solution then involves automating a way to generate pages based on this template, from a series of page fragments containing the content for each page.