I'm reading up one making use of templates with PHP and I think I'm missing the point with them.
I can't see the point in using them when the same results can be delivered by including a file of your functions then delivering the content with function.
For example with templates, it seems you separate it all out as follows:
<some html>
<p>{LISTOFADDRESSES}</p>
<rest of html>
while with a function you could do the same as this:
<some html>
<p><?php echo ListOfAddresses($functionArgumentsHere);?></p>
<rest of html>
Surely, from the graphic designer's point of view it is six of one half dozen of the other.
So is there another benefit of using templates?
Comments much appreciated.
stuart