[Templates-cvs] cvs commit: TT3/lib/Template Generator.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Fri, 10 Dec 2004 13:38:37 +0000
cvs 04/12/10 13:38:36
Modified: lib/Template Generator.pm
Log:
* added an extra debug line
Revision Changes Path
1.8 +7 -3 TT3/lib/Template/Generator.pm
Index: Generator.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Generator.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Generator.pm 2004/11/26 12:43:50 1.7
+++ Generator.pm 2004/12/10 13:38:36 1.8
@@ -16,7 +16,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Generator.pm,v 1.7 2004/11/26 12:43:50 abw Exp $
+# $Id: Generator.pm,v 1.8 2004/12/10 13:38:36 abw Exp $
#
#========================================================================
@@ -27,7 +27,7 @@
use Template::Base;
use base qw( Template::Base );
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $ERROR = '';
our $DEFAULT = '';
@@ -129,6 +129,10 @@
}
}
+ if ($DEBUG && ref $name eq 'ARRAY') {
+ $self->debug("array node: [", join(', ', @$name), "]\n");
+ }
+
return $self->error("unknown generator node type: $name");
}
@@ -183,7 +187,7 @@
=head1 VERSION
-$Revision: 1.7 $
+$Revision: 1.8 $
=head1 COPYRIGHT