render() will croak with "Can't call method "isa" without a package or
object reference at ..XSLT.pm line 228." if passed template is a filename.
Attached patch should fix this.
Subject: | XSLT.pm-templatecheckfix.diff |
--- XSLT.pm-0.07 2009-04-03 16:13:13.000000000 +0200
+++ XSLT.pm 2009-04-03 16:13:22.000000000 +0200
@@ -225,7 +225,7 @@
my ( $self, $c, $template, $args ) = @_;
my $basePath;
- unless ( $template =~ m/\</ || $template->isa('GLOB') || -e $template ||
+ unless ( $template =~ m/\</ || (ref($template) && $template->isa('GLOB')) || -e $template ||
( ref($template) && !$template->isa('Path::Class::File') ) ) {
my $error;