function template_resolver($template) { if (function_exists('resolve_template')) { return resolve_template($template); } return default_resolver($template); }
function route_request($path) { #find the template to use or execute a PHP file $template = resolve_template($path); if ($template == NULL) { do_404($path); exit; } return $template; }