How about having a look at this:
https://svn.rubikintegration.com/zen.../ytemplate.php
you can do something like this:
say you have the page contact us, you can have:
..........page header
file content is automatically rendered depending on the $_GET["action"] or can be set.
..........page footer