Re: plugin interface
| From: | Andrei Zmievski | Date: | Wed, 10 Oct 2001 14:26:18 +0000 |
| Subject: | Re: plugin interface | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1665@lists.php.net to get a copy of this message | ||
On Wed, 10 Oct 2001, Monte Ohrt wrote:
> Another idea would be to compile plugins. So we could put ALL functions
> and modifiers in the plugins directory, then the "addons" script would
> go away, and plugins get compiled and placed into the templates_c
> directory when you first load Smarty. After the first run, then Smarty
> would include this file each time. There are some issues to think about
> here... do we compile every plugin available, or do we compile each one
> as they are mentioned in the templates? If the latter, some more thought
> needs to go into that.
>
> >
> > >
> > >
> > > Q's:
> > > * do we keep function/modifier registration around for backward
> > > compatability? If so, it will be added to above steps.
> >
> > Keep the registration for a while, at least as dummy entries. Make it very
> > clear in the documentation that these functions will be gone in some future
> > version. If you decide to skip registration, that is! I really hate
> > compatibility breakers ;)
>
> We could leave the registration functionality in Smarty and make it
> empty in the distribution. Then in the documentation, make it absolutely
> clear that plugins are the preferred method of adding functionality to
> Smarty.
I am sorry that I haven't contributed to this discussion. The idea of
plugins is very interesting to me and I believe I could provide further
insight, as I've written many plugins for many other applications and I
am familiar with how their plugin architectures work.. Just been very
busy, that's all.
-Andrei
* Non-volatile, random-access, analog memory store... a book. *