I've installed Template Toolkit 2.14 and have just been trying to use
the Math plugin as per the docs at
http://www.template-toolkit.org/docs/plain/Modules/Template/Plugin/
Math.html
I created a template called test.tt2
Random number: [% USE Math; Math.rand(10) %]
$ perl -MTemplate -le 'my $t = Template->new(); $t->process
("test.tt2") or die $t->error();'
plugin error - Math: plugin not found
I can find the documentation in /usr/local/tt2/docs/src/Modules/
Template/Plugin/Math.html but can't find the corresponding Math.pm
in /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Template/
Plugin/
In the source tree used to install it..
$ find . -name \*Math\*
./docs/src/Modules/Template/Plugin/Math.html
I've checked the list archives and it's not a problem with the plugin
path as plugins like Date work just fine. Did Math.pm disappear out
of the source tree?
Simon
--
Simon Amor
[EMAIL PROTECTED]
http://www.leaky.org/
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates