RE: Strip-Function

From: Date: Thu, 19 Apr 2001 14:10:39 +0000
Subject: RE: Strip-Function
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-557@lists.php.net to get a copy of this message
> We could make a filter list, something like so: > > $filter_functions = array("_strip_data"); > > Then Smarty could run the content of the templates through these > functions before parsing it. That could cause some havoc though, if the > function accidentally breaks some template syntax, the problem may not > be immediately obvious in a compilcated application since the template > source is not necessarily a true representation of what gets compiled. > > Of course then there comes the issue, would you need more fine grain > control like the ability to selectively choose what templates get > filtered? I don't think so. Someone suggested long ago a function to strip HTML comments out templates... HTML comments are not for the output in a production environment (though they are helpful in the development stage). THis is the same case, just wider... Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

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