function _phptemplate_render in Drupal 5
File
- themes/engines/ phptemplate/ phptemplate.engine, line 413 
- Handles integration of templates written in pure php with the Drupal theme system.
Code
function _phptemplate_render($file, $variables) {
  extract($variables, EXTR_SKIP);
  // Extract the variables to a local namespace
  ob_start();
  // Start output buffering
  include "./{$file}";
  // Include the file
  $contents = ob_get_contents();
  // Get the contents of the buffer
  ob_end_clean();
  // End buffering and discard
  return $contents;
  // Return the contents
}