There are lots of good templating tools for use in CGI scripts too. Take a look at my article on this subject.
In reply to Re: Using a template by perrin in thread Using a template by shanestyle