I am working with a pretty simple php template right now, stored in one index.php and fetch the files via a GET and access the files like: http://mydomain.com/index.php?page=news if the file is called news.php. See the code snippet below.
<?
$fileend = ".php";
$file="{$_GET["page"]}$fileend";
$news="news.php";
if(file_exists($file))
include($file);
else
include($news);
?>
Now I want to use a templage engine where I can have different tags for each page, still I don't want to change my file system. Right now my php files looks like this:
<h1>Page Title</h1>
<p>Page Content</p>
I don't use a header as the files are included in my index.php.
I have looked at TinyButStrong and other engines. But I don't know how I should proceed. It should be quite easy. Please let me know how I can do when I don't want to change a lot in my file structure and keep it simple.