Insert template into index.php and delete templete file.