THE PROBLEM:
I'm trying to learn how to write a plugin. My system can't find my plugin.
So,
I tried to do a setup as close to the documentation examples as possible,
just to get the thing to work. I find this error msg in apache's log:
plugin error - MyPlugin: plugin not found at
/usr/local/apache/tt2/agendoo_handler.pm line 116.
------------------------------------------------------------------------
MY SETUP:
package Agendoo:
use Template qw( :template );
<snip>
my $template = Template->new({
INCLUDE_PATH => '/usr/local/apache/tt2:/usr/local/tt2/templates',
VARIABLES => \%globals,
PLUGIN_BASE => 'MyOrg::Template::Plugin',
});
My plugin dir is located here: /usr/local/apache/tt2/MyOrg/Template/Plugin
------------------------------------------------------------------------
This is the plugin; I basically copied it from Plugin.html
package MyOrg::Template::Plugin::MyPlugin;
use base qw( Template::Plugin );
use Template::Plugin;
sub new {
my $class = shift;
my $context = shift;
bless {
#...
}, $class;
}
------------------------------------------------------------------------
The web page is named testplugin.tmpl; it has the line:
[% USE MyPlugin %]
------------------------------------------------------------------------
Where, oh where, did I go wrong?
/dennis
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates