[Templates-cvs] cvs commit: Template2/lib/Template Provider.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Tue, 14 Oct 2003 10:39:19 +0100


cvs         03/10/14 09:39:19

  Modified:    lib/Template Provider.pm
  Log:
  * changed _compile() method to instantiate document of class $DOCUMENT
    rather than hard coded Template::Document
  
  Revision  Changes    Path
  2.72      +6 -6      Template2/lib/Template/Provider.pm
  
  Index: Provider.pm
  ===================================================================
  RCS file: /template-toolkit/Template2/lib/Template/Provider.pm,v
  retrieving revision 2.71
  retrieving revision 2.72
  diff -u -r2.71 -r2.72
  --- Provider.pm	2003/07/24 16:16:28	2.71
  +++ Provider.pm	2003/10/14 09:39:19	2.72
  @@ -27,7 +27,7 @@
   #
   #----------------------------------------------------------------------------
   #
  -# $Id: Provider.pm,v 2.71 2003/07/24 16:16:28 abw Exp $
  +# $Id: Provider.pm,v 2.72 2003/10/14 09:39:19 abw Exp $
   #
   #============================================================================
   
  @@ -44,7 +44,7 @@
   use File::Basename;
   use File::Spec;
   
  -$VERSION  = sprintf("%d.%02d", q$Revision: 2.71 $ =~ /(\d+)\.(\d+)/);
  +$VERSION  = sprintf("%d.%02d", q$Revision: 2.72 $ =~ /(\d+)\.(\d+)/);
   
   # name of document class
   $DOCUMENT = 'Template::Document' unless defined $DOCUMENT;
  @@ -868,7 +868,7 @@
   
   	unless ($error) {
   	    return $data				        ## RETURN ##
  -		if $data->{ data } = Template::Document->new($parsedoc);
  +		if $data->{ data } = $DOCUMENT->new($parsedoc);
   	    $error = $Template::Document::ERROR;
   	}
       }
  @@ -1417,8 +1417,8 @@
   
   =head1 VERSION
   
  -2.70, distributed as part of the
  -Template Toolkit version 2.10, released on 24 July 2003.
  +2.71, distributed as part of the
  +Template Toolkit version 2.10a, released on 09 October 2003.
   
   =head1 COPYRIGHT
   
  @@ -1430,4 +1430,4 @@
   
   =head1 SEE ALSO
   
  -L<Template|Template>, L<Template::Parser|Template::Parser>, L<Template::Context|Template::Context>
  \ No newline at end of file
  +L<Template|Template>, L<Template::Parser|Template::Parser>, L<Template::Context|Template::Context>