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

cvs@template-toolkit.org cvs@template-toolkit.org
Fri, 03 Dec 2004 13:49:43 +0000


cvs         04/12/03 13:49:43

  Modified:    lib/Template/Directive Block.pm
  Log:
  * change parse_filename() to parse_static_path()
  
  Revision  Changes    Path
  1.4       +5 -5      TT3/lib/Template/Directive/Block.pm
  
  Index: Block.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/Directive/Block.pm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Block.pm	2004/11/19 16:12:02	1.3
  +++ Block.pm	2004/12/03 13:49:43	1.4
  @@ -15,7 +15,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Block.pm,v 1.3 2004/11/19 16:12:02 abw Exp $
  +#   $Id: Block.pm,v 1.4 2004/12/03 13:49:43 abw Exp $
   #
   #========================================================================
   
  @@ -26,7 +26,7 @@
   use Template::Directive;
   use base qw( Template::Directive );
   
  -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 $KEYWORD = 'BLOCK';
  @@ -42,7 +42,7 @@
           || return $self->error('no parser defined');
   
       # block name is optional, but forward any parser errors
  -    my $name = $parser->parse_filename($textref);
  +    my $name = $parser->parse_static_path($textref);
       my $expr = $name ? [ blockdef => $name ] : undef;
   
       return $handler->start_expr( $expr,
  @@ -82,7 +82,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.3 $
  +$Revision: 1.4 $
   
   =head1 COPYRIGHT
   
  @@ -133,7 +133,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.3 $
  +$Revision: 1.4 $
   
   =head1 COPYRIGHT