Fair enough, im assuming you will be the only one using though then?
Reason im saying its a bad idea, like i said in my previous post as well as this, Users like to see what they have, with it in XML, they must create then open up there browser to test it, while its different with other templating systems.
Well, the problem with doing anything more user-friendly is that I'm not very good with regular expressions.
Why do you need Regex? My templating system doesnt, it uses Arrays e.g.
Template:
{sitename} {title}
And will send arrays over like this
$content['sitename'], $content['title'];
Of course it will be in one variable and not displaying the index, its then just a foreach loop to search through the template file and then display.
With yours on the other hand, yours would have to gather the variables, replace anything within the XML (but will require searching a timely process) then build the template into its useful form.
Feel free to prove me wrong when you get the template class complete, and fast.
But i must admit its a fairly original idea.