Arthur Radulescu <mailto:[EMAIL PROTECTED]> on Thursday, April 15, 2004 10:02 AM said:
>> Remove all whitespace from the final HTML, then all this doesn't >> matter. [snip function] > Have already thought about this but would this not be too time > consuming to process this replacement on evey hit? > I am using a version of fast template much improved on a site which is > already very overloaded so this would mean additional processing and > replacements seems to be resources consuming sometimes... maybe instead of running the function at runtime you can create two sites (there might be a more elegant way to do this), one for development and one that is live. on the development site you put as many white space characters as you want, then run all the template files through a perl script that strips out all unnecessary white space and publishes those template files to the live site. this way you only have to run the script once and you can continue to work on a readable template file. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php