[Templates-cvs] cvs commit: Template2/lib/Template/Stash Context.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/05/30 17:01:38
Modified: lib/Template/Stash Context.pm
Log:
* Fixed all the version numbers
* General code cleanup
* Changed copyright messages, email addresses, etc.
* Released version 2.15b
Revision Changes Path
1.63 +9 -10 Template2/lib/Template/Stash/Context.pm
Index: Context.pm
===================================================================
RCS file: /template-toolkit/Template2/lib/Template/Stash/Context.pm,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- Context.pm 2006/05/30 15:53:42 1.62
+++ Context.pm 2006/05/30 17:01:38 1.63
@@ -65,19 +65,18 @@
#
#----------------------------------------------------------------------------
#
-# $Id: Context.pm,v 1.62 2006/05/30 15:53:42 abw Exp $
+# $Id: Context.pm,v 1.63 2006/05/30 17:01:38 abw Exp $
#
#============================================================================
package Template::Stash::Context;
-require 5.004;
-
use strict;
+use warnings;
use Template::Stash;
-use vars qw( $VERSION $DEBUG $ROOT_OPS $SCALAR_OPS $HASH_OPS $LIST_OPS );
-$VERSION = sprintf("%d.%02d", q$Revision: 1.62 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = 1.63;
+our $DEBUG = 0 unless defined $DEBUG;
#========================================================================
@@ -88,24 +87,24 @@
# copy virtual methods from those in the regular Template::Stash
#------------------------------------------------------------------------
-$ROOT_OPS = {
+our $ROOT_OPS = {
%$Template::Stash::ROOT_OPS,
defined $ROOT_OPS ? %$ROOT_OPS : (),
};
-$SCALAR_OPS = {
+our $SCALAR_OPS = {
%$Template::Stash::SCALAR_OPS,
'array' => sub { return [$_[0]] },
defined $SCALAR_OPS ? %$SCALAR_OPS : (),
};
-$LIST_OPS = {
+our $LIST_OPS = {
%$Template::Stash::LIST_OPS,
'array' => sub { return $_[0] },
defined $LIST_OPS ? %$LIST_OPS : (),
};
-$HASH_OPS = {
+our $HASH_OPS = {
%$Template::Stash::HASH_OPS,
defined $HASH_OPS ? %$HASH_OPS : (),
};
@@ -765,7 +764,7 @@
=head1 VERSION
-1.61, distributed as part of the
+1.63, distributed as part of the
Template Toolkit version 2.15b, released on 30 May 2006.
=head1 COPYRIGHT