[Templates-cvs] cvs commit: TT3/lib/Template Base.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Fri, 10 Dec 2004 13:34:29 +0000
cvs 04/12/10 13:34:29
Modified: lib/Template Base.pm
Log:
* minor change
Revision Changes Path
1.13 +9 -4 TT3/lib/Template/Base.pm
Index: Base.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Base.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Base.pm 2004/12/07 11:00:05 1.12
+++ Base.pm 2004/12/10 13:34:29 1.13
@@ -16,7 +16,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Base.pm,v 1.12 2004/12/07 11:00:05 abw Exp $
+# $Id: Base.pm,v 1.13 2004/12/10 13:34:29 abw Exp $
#
#========================================================================
@@ -29,7 +29,7 @@
require Template::Utils;
require Template::Exception;
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.13 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $ERROR = '';
our $PAD = ' ';
@@ -55,7 +55,8 @@
my $config = defined $_[0] && UNIVERSAL::isa($_[0], 'HASH')
? shift : { @_ };
- my ($debug) = $class->pkgconf($config, 'debug');
+ my $debug = defined $config->{ debug }
+ ? $config->{ debug } : $class->pkgvar($DEBUG => $DEBUG);
my $self = bless {
DEBUG => $debug,
@@ -472,6 +473,8 @@
# (e.g. scanner => Template::Scanner)
#------------------------------------------------------------------------
+# TODO: this should be deprecated and/or moved into Template::Utils
+
sub module {
my $self = shift;
my $name = shift;
@@ -513,6 +516,8 @@
}
+# TODO: this should be deprecated and/or moved into Template::Utils
+
#------------------------------------------------------------------------
# object($name, $config)
#
@@ -1168,7 +1173,7 @@
=head1 VERSION
-$Revision: 1.12 $
+$Revision: 1.13 $
=head1 COPYRIGHT