Yeah...you don't want to screw around with cutting and pasting HTML all over the place...you need to use a template engine, roll your own from PHP (or Perl if you want, or C, or C++ or Python....), or EVEN BETTER go with a *cool* CMS engine like MT...nice pick!
Lots of features and tons of support out there...
Welcome to the future! PHP rocks!