Because the things like those "plugins" I switched to TT (used HT before).

With TT it's much easier to do things like that - especialy if you need to pass some parameters to your plugin.

Say an online visitors counter - but in one place you wan't to display also the last 5 visitors (last 5 logins) and on the other place 1, 10 or all of them ...

Of course there is also the caching - with TT it works out of the box :D


And while your sugestions work - I don't think they are most elegant way. I would prefer that I have some folder where plugins would be placed (App_Name::Plugins::xyz) and when I call say c.plugin('plugin_name', 'param1', 2, 'param3') it would automaticly require App_Name::Plugins::plugin_name and pass parameters to it. Perhaps by calling some agreed method (say output) ...
--
   Aleksandar Petrović
    www.techcode.net
 Web Design & Development

Skype   techcode.net
Yahooo! IM      johndoeyu
ICQ             75863829
MSN     [EMAIL PROTECTED]
AIM     tchcode

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to