A PHP-based template class inspired by the example at The idea is to simplify the template engine by just using regular old PHP source files as template files.  Since the syntax for advanced templating is not significantly less complicated than regular PHP syntax, we might as well save ourselves some trouble and just use PHP.

Please note that this class will depend on an appropriately set include_path.  This will allow us to transparently have different templates for different sections of the site and fall back to the default if we don’t want to bother.



A base object which is event-aware, i.e.