For any complex website I would strongly disagree with the
advice to use CGI's html generation methods. The more
complex the overall site, the more I tend to disagree.
A recent node with a good summary of why templating is a
good idea was given by maverick at Re: Re: Re: Re: Code Critique.
(There are plenty of others out there of course.)