postfilter.trimwhitespace.php

From: Date: Fri, 08 Mar 2002 23:08:11 +0000
Subject: postfilter.trimwhitespace.php
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2988@lists.php.net to get a copy of this message
I've created a postfilter that trims out leading whitespace and blank lines from your page before being sent to the browser. This cleans up the code a bit and saves some bandwidth. It is careful not to touch <PRE></PRE> and <SCRIPT></SCRIPT> blocks. Just drop it into your plugin directory (remove the .txt extention) and view the source in your browser to see the effect. Let me know if there are any problems with it. http://www.phpinsider.com/php/code/Smarty/contribs/plugins/postfilter.trimwhitespace.php.txt -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#2988) next »