In general, how do most template parsers work? do they read the file into a variable and do something to the effect of preg_replace() to element that is found?
and if so, could you replace the step of reading the file into a variable with getting the template data out of a database? WARNING... more questions to come... Jim