[Templates-cvs] cvs commit: TT3/lib/Template Factory.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Fri, 10 Dec 2004 12:32:25 +0000
cvs 04/12/10 12:32:25
Modified: lib/Template Factory.pm
Log:
* added a comment for init()
Revision Changes Path
1.4 +12 -3 TT3/lib/Template/Factory.pm
Index: Factory.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Factory.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Factory.pm 2004/12/10 12:13:13 1.3
+++ Factory.pm 2004/12/10 12:32:25 1.4
@@ -18,7 +18,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Factory.pm,v 1.3 2004/12/10 12:13:13 abw Exp $
+# $Id: Factory.pm,v 1.4 2004/12/10 12:32:25 abw Exp $
#
#========================================================================
@@ -30,7 +30,7 @@
use Template::Base;
use base qw( Template::Base );
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $ERROR = '';
our $THROW = 'factory'; # name used for throwing errors
@@ -41,6 +41,15 @@
our $PATH = [ ];
+#------------------------------------------------------------------------
+# init($config)
+#
+# Initialisation method called by Template::Base new() method.
+# Sets 'name' parameter, looks for any additional 'modules' defined
+# (or going by another name, defined in $NAME), and saves any
+# module-specific configuration parameters for later.
+#------------------------------------------------------------------------
+
sub init {
my ($self, $config) = @_;
my $class = ref $self || $self;
@@ -446,7 +455,7 @@
=head1 VERSION
-$Revision: 1.3 $
+$Revision: 1.4 $
=head1 COPYRIGHT