Template Toolkit and USE

R

Ronny Mandal

Hi!

I've installed the module URI from CPAN. This works perfectly on perl-
scripts, however when running tpage CLI it issues an error message,
e.g.

../test.tt:

[% USE URI %]

[ronny@pops]/home/ronny/development/tt(387): tpage test.tt
plugin error - URI: plugin not found
[ronny@pops]/home/ronny/development/tt(388):

Any suggestions? When dumping the @INC, URI.pm is contained in at
least one of the paths.

Regards,

Ronny Mandal
 
B

Ben Morrow

Quoth Ronny Mandal said:
I've installed the module URI from CPAN. This works perfectly on perl-
scripts, however when running tpage CLI it issues an error message,
e.g.

./test.tt:

[% USE URI %]

[ronny@pops]/home/ronny/development/tt(387): tpage test.tt
plugin error - URI: plugin not found
[ronny@pops]/home/ronny/development/tt(388):

Any suggestions? When dumping the @INC, URI.pm is contained in at
least one of the paths.

If you are trying to load URI.pm itself as a plugin you will need to
specify LOAD_PERL => 1 in you template config.

Ben
 
R

Ronny Mandal

Quoth Ronny Mandal <[email protected]>:


I've installed the module URI from CPAN. This works perfectly on perl-
scripts, however when running tpage CLI it issues an error message,
e.g.
./test.tt:

[% USE URI %]
[ronny@pops]/home/ronny/development/tt(387): tpage test.tt
plugin error - URI: plugin not found
[ronny@pops]/home/ronny/development/tt(388):
Any suggestions? When dumping the @INC, URI.pm is contained in at
least one of the paths.

If you are trying to load URI.pm itself as a plugin you will need to
specify LOAD_PERL => 1 in you template config.
The system is obviously configured with that setting, I am able to
load
a phletora of modules, except the URI.pm.

Or are you saying that the URI.pm requires this setting, the others
not?

-Ronny
 
B

Ben Morrow

Quoth Ronny Mandal said:
Quoth Ronny Mandal said:
I've installed the module URI from CPAN. This works perfectly on perl-
scripts, however when running tpage CLI it issues an error message,
e.g.
./test.tt:

[% USE URI %]
[ronny@pops]/home/ronny/development/tt(387): tpage test.tt
plugin error - URI: plugin not found
[ronny@pops]/home/ronny/development/tt(388):
Any suggestions? When dumping the @INC, URI.pm is contained in at
least one of the paths.

If you are trying to load URI.pm itself as a plugin you will need to
specify LOAD_PERL => 1 in you template config.

The system is obviously configured with that setting, I am able to
load
a phletora of modules, except the URI.pm.

Or are you saying that the URI.pm requires this setting, the others
not?

I don't know. If you are having specific problems loading URI.pm, as
opposed to loading other non-TT modules as plugins, please post a
minimal complete program that demonstrates the problem.

Ben
 
T

Ted Zlatanov

RM> I've installed the module URI from CPAN. This works perfectly on perl-
RM> scripts, however when running tpage CLI it issues an error message,
RM> e.g.

RM> ./test.tt:

RM> [% USE URI %]

RM> [ronny@pops]/home/ronny/development/tt(387): tpage test.tt
RM> plugin error - URI: plugin not found
RM> [ronny@pops]/home/ronny/development/tt(388):

RM> Any suggestions? When dumping the @INC, URI.pm is contained in at
RM> least one of the paths.

TT plugins are not regular Perl modules (although it's not hard to write
a TT plugin wrapper around a Perl module). See below for the full list
of what's included with TT. You may want the URL plugin, I don't know
your specific needs.

http://template-toolkit.org/docs/manual/Plugins.html

Ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top