Templating or other system to output static web pages?

Hello,

I’ve been asked to put a site together for a friend, and as it’s going to be a quite low-key affair he’s only interested in paying the bare minimum for a domain-parking account with no server scripting or SSI. I’ve not developed a static site in some time, and last time there was a lot of duplication-of-effort in managing multiple pages with common chrome.

This time, I’m hoping to save myself that pain by using some kind of templating system. My development server and laptop are Linux, so I’ll have the usual PHP, Perl, bash etc options at hand. My ideal approach would probably be to write the site using PHP as though it were dynamic, then have some method of “spidering” the whole site into a set of static html files. I reckon I could probably accomplish this with a bash script and wget, but it occurs that someone has probably already created such a thing.

So, can anyone suggest any systems out there that do this sort of thing? Any tips/suggestions very welcome.