PHP Template Inheritance consists of a handful of
functions which
allow child templates to inherit common structure
from base templates.
Multiple levels of inheritance are possible. The
inspiration for this
project was Django's template inheritance
mechanism. Templates are PHP
files too, so you can do (almost) whatever you
want in them.