Template::Plugin::XML::XPath doesn't C<use Template::Exception>.  This
means that if you're using the Template::Plugin::XML::XPath plugin outside
of the Template Toolkit then you can run into problems.

Why would you want to do this?  Er...in testing.  Honest.

Here's a diff but as you can see it's just the addition of one line.

Yes I know I should supply failing and now passing tests for this diff,
but it's late and I can't see any easy way of doing this ;-)

Later.

Mark.

-- 
  Mark Fowler
  Technology Developer
  http://www.indicosoftware.com/


Index: XPath.pm
===================================================================
RCS file: /template-toolkit/Template2/lib/Template/Plugin/XML/XPath.pm,v
retrieving revision 2.48
diff -u -r2.48 XPath.pm
--- XPath.pm    2002/05/03 14:10:20     2.48
+++ XPath.pm    2002/05/09 21:52:52
@@ -27,6 +27,7 @@

 use strict;
 use Template::Plugin;
+use Template::Exception;
 use XML::XPath;

 use base qw( Template::Plugin );





Reply via email to