* Dennis Daupert <ddaupert at csc.com> [2003-03-10 09:59]:
> I'm trying to learn how to write a plugin. My system can't find my
> plugin.
This is always a fun game. Unfortunately, the error message you cit is
the generic error message; you will get this if your plugin module
contains syntax errors as well as if TT (or Perl) can't find your .pm
file.
> My plugin dir is located here:
> /usr/local/apache/tt2/MyOrg/Template/Plugin
I'm assuming you have /usr/local/apache/tt2 in @INC, via something like
"use lib"? TT looks up plugins using the standard Perl module search
path: For a plugin named MyPlugin ([% USE MyPlugin %]), which maps to
MyOrg::Template::Plugin::MyPlugin (if you have PLUGIN_BASE set to
include MyOrg::Template::Plugin), TT will try to load
MyOrg/Template/Plugin/MyPlugin.pm relative to the directories in @INC.
(darren)
--
Morality works best when chosen, not when mandated.
-- Larry Wall
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates