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

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


cvs         03/10/14 09:41:17

  Modified:    lib/Template Context.pm
  Log:
  * changed visit() method to expect $document as first arg, followed by
    blocks def
  
  Revision  Changes    Path
  2.83      +7 -7      Template2/lib/Template/Context.pm
  
  Index: Context.pm
  ===================================================================
  RCS file: /template-toolkit/Template2/lib/Template/Context.pm,v
  retrieving revision 2.82
  retrieving revision 2.83
  diff -u -r2.82 -r2.83
  --- Context.pm	2003/07/24 16:16:27	2.82
  +++ Context.pm	2003/10/14 09:41:16	2.83
  @@ -18,7 +18,7 @@
   #   modify it under the same terms as Perl itself.
   # 
   # REVISION
  -#   $Id: Context.pm,v 2.82 2003/07/24 16:16:27 abw Exp $
  +#   $Id: Context.pm,v 2.83 2003/10/14 09:41:16 abw Exp $
   #
   #============================================================================
   
  @@ -35,7 +35,7 @@
   use Template::Constants;
   use Template::Exception;
   
  -$VERSION = sprintf("%d.%02d", q$Revision: 2.82 $ =~ /(\d+)\.(\d+)/);
  +$VERSION = sprintf("%d.%02d", q$Revision: 2.83 $ =~ /(\d+)\.(\d+)/);
   $DEBUG_FORMAT = "\n## \$file line \$line : [% \$text %] ##\n";
   
   
  @@ -546,7 +546,7 @@
   
   
   #------------------------------------------------------------------------
  -# visit($blocks)
  +# visit($document, $blocks)
   #
   # Each Template::Document calls the visit() method on the context
   # before processing itself.  It passes a reference to the hash array
  @@ -557,7 +557,7 @@
   #------------------------------------------------------------------------
   
   sub visit {
  -    my ($self, $blocks) = @_;
  +    my ($self, $document, $blocks) = @_;
       unshift(@{ $self->{ BLKSTACK } }, $blocks)
   }
   
  @@ -1533,8 +1533,8 @@
   
   =head1 VERSION
   
  -2.81, distributed as part of the
  -Template Toolkit version 2.10, released on 24 July 2003.
  +2.82, distributed as part of the
  +Template Toolkit version 2.10a, released on 09 October 2003.
   
   =head1 COPYRIGHT
   
  @@ -1546,4 +1546,4 @@
   
   =head1 SEE ALSO
   
  -L<Template|Template>, L<Template::Document|Template::Document>, L<Template::Exception|Template::Exception>, L<Template::Filters|Template::Filters>, L<Template::Plugins|Template::Plugins>, L<Template::Provider|Template::Provider>, L<Template::Service|Template::Service>, L<Template::Stash|Template::Stash>
  \ No newline at end of file
  +L<Template|Template>, L<Template::Document|Template::Document>, L<Template::Exception|Template::Exception>, L<Template::Filters|Template::Filters>, L<Template::Plugins|Template::Plugins>, L<Template::Provider|Template::Provider>, L<Template::Service|Template::Service>, L<Template::Stash|Template::Stash>