i have several repeating regions that i have created simple templates for. as i understand it when i require this template the page stops compiling, goes and compiles the template, then starts over. i was wondering if file_get_contents (then running str_replace) would be cleaner?
Cool, file_get_contents would not compile the code you are correct. Require would parse it, looking for code to compile.
Have you tried using preg_replace, instead of str_replace - If I remember correctly its supposedly quicker, and also can cope with multiple search/replaces at once using arrays...might save some more time?