RE: Strip-Function
| From: | Monte Ohrt | Date: | Thu, 19 Apr 2001 13:31:57 +0000 |
| Subject: | RE: Strip-Function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-554@lists.php.net to get a copy of this message | ||
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.
Andreas Aderhold wrote:
>
> Hi Monte,
>
> > Maybe at a higher level, we could add a way to pass the completed
> > template output through a filter (a function of your choice) before
> > displaying or caching.
>
> Yes that would be very nice. But don't you think this should happen in the
> compiler class? Passing the whole data through a extra filter on every hit
> would be an unnecessary waste of time - in my mind.
>
> But to have a customized dropin function only active "onCompile" would be
> very very cool.
>
> Andi
> ____________
> www.thyrell.de
>
> ---
> 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/