moving temp_foo.php to templates