Description of Flexible CGI Output with HTML Templates :
This article teaches how to isolate the HTML code in a separate file(template) which is just like any regular HTML file. However, the template has special markups that indicate where to insert the dynamic data that will be produced by the CGI program.