Click here to get back home

Template Toolkit and USE

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Template Toolkit and USE Ronny Mandal 06-27-2008
Posted by Ronny Mandal on June 27, 2008, 9:39 am
Please log in for more thread options
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

Posted by Ben Morrow on June 27, 2008, 12:12 pm
Please log in for more thread options

>
> 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

--
Many users now operate their own computers day in and day out on various
applications without ever writing a program. Indeed, many of these users
cannot write new programs for their machines...
-- F.P. Brooks, 'No Silver Bullet', 1987 [ben@morrow.me.uk]

Posted by Ronny Mandal on June 27, 2008, 1:08 pm
Please log in for more thread options
>
>
>
> > 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

Posted by Ben Morrow on June 27, 2008, 1:50 pm
Please log in for more thread options

> >
> > > 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

--
We do not stop playing because we grow old;
we grow old because we stop playing.
ben@morrow.me.uk

Posted by Ted Zlatanov on June 30, 2008, 9:42 am
Please log in for more thread options
wrote:

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

Similar ThreadsPosted
What's better than Template Toolkit? March 26, 2008, 1:38 am
Template-Toolkit-2.14 fails make on FC3 August 27, 2005, 9:23 am
Node ToolKit. __Was __ Re:C linked lists in Perl August 2, 2008, 3:14 pm
Template November 19, 2006, 3:40 pm
Template June 15, 2007, 4:35 pm
Looking for GT::CGI and GT::Template April 2, 2008, 10:07 pm
examples using PDF::Template December 7, 2004, 1:50 pm
apache::template July 23, 2005, 12:38 am
Template to tiff November 9, 2005, 7:09 am
Help on the template files May 15, 2006, 8:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap