Contemplate is a PHP-based, open source web templating system. You can store content, design templates and code in separate files, edit them with your favorite tools, then use Contemplate to merge them at runtime.
staticxgen is a static web site generator. Your site will consist of some XML files. An unique header, footer and menu will be defined and it will be automatically inserted at runtime. Relative links will be generated among files.