[Templates-cvs] cvs commit: TT3/lib/Template/Generator Perl.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Fri, 03 Dec 2004 08:22:27 +0000


cvs         04/12/03 08:22:26

  Modified:    lib/Template/Generator Perl.pm
  Log:
  * fixed generate_set() to handle new sexpr format
  
  Revision  Changes    Path
  1.10      +4 -4      TT3/lib/Template/Generator/Perl.pm
  
  Index: Perl.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/Generator/Perl.pm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Perl.pm	2004/12/01 18:30:02	1.9
  +++ Perl.pm	2004/12/03 08:22:26	1.10
  @@ -18,7 +18,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Perl.pm,v 1.9 2004/12/01 18:30:02 abw Exp $
  +#   $Id: Perl.pm,v 1.10 2004/12/03 08:22:26 abw Exp $
   #
   #========================================================================
   
  @@ -31,7 +31,7 @@
   use Template::Generator;
   use base qw( Template::Generator );
   
  -our $VERSION  = sprintf("%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/);
  +our $VERSION  = sprintf("%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/);
   our $DEBUG    = 0 unless defined $DEBUG;
   our $ERROR    = '';
   #our $DEFAULT  = '_default';
  @@ -522,7 +522,7 @@
   
   sub generate_set {
       my ($self, @list) = @_;
  -    return join('; ', map { $self->generate($_) } @list) . ';';
  +    return join('; ', map { $self->generate_assign(@$_) } @list) . ';';
   }
   
   
  @@ -1537,7 +1537,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.9 $
  +$Revision: 1.10 $
   
   =head1 COPYRIGHT