Hi,
Iam a person who has started using Template tookit, I
have one clarification regarding template plugins.
My requirement is like I need to use both default and
user defined plugins. I initially thought for default
plugins there is no need to specify them in
PLUGIN_BASE, but when I started using plugins i got
the following error: ( both for default and user
defined plugins)
Can't locate xxxx/String.pm in @INC (@INC contains:
.... /usr/local/apache/ /usr/local/apache/lib/perl) at
/xxxx/lib/perl5/site_perl/5.8.6/Template/Plugins.pm
line 201.
On seeing the Plugins.pm I could see that $STD_PLUGINS
is anonymous hash containing mapping for default
plugins.
In my case this file is not having the mapping for CGI
and String modules (default ones) , as a result a
search is done in all the paths mentioned in
PLUGIN_BASE and error is thrown for all the paths
wherever it is unable to find the plugin. Eventhough
the functionality works fine, there shouldn't be
errors thrown like this, instead it should only throw
errors when none of the PLUGIN_BASE path has the
plugin.
Regarding $STD_PLUGINS, I want to know whether new
version of Plugins.pm is generated whenever new
default plugin gets added?. This looks like some over
head?
Can you please throw light on this?
Thanks,
Ramesh
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates