[Templates-cvs] cvs commit: TT3/lib/Template/TT3/Tag Directive.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Mon, 15 Dec 2003 17:32:36 +0000


cvs         03/12/15 17:32:36

  Modified:    lib/Template/TT3/Tag Directive.pm
  Log:
  * changed parse() method to scan()
  
  Revision  Changes    Path
  1.3       +5 -5      TT3/lib/Template/TT3/Tag/Directive.pm
  
  Index: Directive.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/TT3/Tag/Directive.pm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Directive.pm	2003/12/11 17:41:02	1.2
  +++ Directive.pm	2003/12/15 17:32:36	1.3
  @@ -17,7 +17,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Directive.pm,v 1.2 2003/12/11 17:41:02 abw Exp $
  +#   $Id: Directive.pm,v 1.3 2003/12/15 17:32:36 abw Exp $
   #
   #========================================================================
   
  @@ -30,7 +30,7 @@
   use vars qw( $VERSION $DEBUG $ERROR $WARNING $TAG );
   use base qw( Template::TT3::Tag );
   
  -$VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
  +$VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
   $DEBUG   = 0 unless defined $DEBUG;
   $ERROR   = '';
   $TAG     = {
  @@ -41,8 +41,8 @@
       post_chomp => 0,
   };
   
  -sub parse {
  -    my ($self, $textref, $document) = @_;
  +sub scan {
  +    my ($self, $textref, $document, $start) = @_;
       my ($flag, $comment, $result);
   
       $self->debug("parsing directive\n") if $DEBUG;
  @@ -124,7 +124,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.2 $
  +$Revision: 1.3 $
   
   =head1 COPYRIGHT