Writing a Template System in PHP - The Template File
(Page 3 of 9 )
Before I could start scripting my templating engine I first needed a template file. Not only would the template file be the cornerstone of the entire site, but it would also dictate how the class should be written.
Though I could have chosen any set of characters to delimit my placeholders, I chose braces because they seem to be the ones most commonly used in other templating scripts. This would hopefully make template file sharing easier in the future.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">