RE: Strip-Function

From: Date: Thu, 19 Apr 2001 14:01:52 +0000
Subject: RE: Strip-Function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-556@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? Hojtsy Gabor wrote: > > > As long as the data you want stripped is static in the template, that > > would work fine. If you want data stripped that is created by the > > template at runtime, then that wouldn't help. I guess it depends on the > > > scope of the functionality needed. > > Well, the original question was about static stips. > No dynamic one... > > Goba > ........................................................... . . . . . > Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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