Re: plugin interface
| From: | Monte Ohrt | Date: | Wed, 10 Oct 2001 17:15:37 +0000 |
| Subject: | Re: plugin interface | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1673@lists.php.net to get a copy of this message | ||
a few things come to mind:
1) Performance. If a particular function is not used in any templates,
why load it or register it?
2) Flexability. People can contribute plugins that we can publish on the
web site. Then to add that function to your Smarty, just drop the file
into the plugin directory, and call the function in your template. This
also makes existing functions neatly organized and easily added/removed.
3) by virtue of the plugin architecture, we also add in other nice
features such as default function handling.
Monte
Andrei Zmievski wrote:
>
> On Wed, 10 Oct 2001, Peter Bowyer wrote:
> > Good to see you've appeared at last Andrei :-)
> >
> > May I ask why we need plugins? Why not just add functions to the
> > Smarty.Addons.php file?
> > Or have I missed something here?
>
> I believe Monte can provide the justification, since it was his idea.
>
> -Andrei
> * Think digital, act analog. *
>
> ---
> 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/