Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir
| From: | Andrei Zmievski | Date: | Tue, 09 Apr 2002 19:47:13 +0000 |
| Subject: | Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3582@lists.php.net to get a copy of this message | ||
On Tue, 09 Apr 2002, Andrei Zmievski wrote:
> 3. Pre/postfilters. Not quite sure what to do about those, since
> scanning all the plugin directories might be a bit costly, but then
> it's only done during compilation. However, if we introduce 'output'
> plugins then those will incur a performance penalty because they will
> need to be located upon every template access, unless the output
> plugins are specifie via something like {output type="trimwhitespace"}.
Wait, do we really need 'output' plugins? They can really easily be
emulated with a combination of {capture} and modifiers and that way you
can control the output of specific parts of the template.
{capture name="main"}
{* beginning of template *}
...
...
{* end of the template *}
{/capture}
{$smarty.capture.main|trimwhitespace}
-Andrei
"PHP is like a teenage blonde walking alone in the night..
and all these newbies are lurking in the shadows.."
-- Jani Taskinen