[Jifty-commit] r3066 - Template-Declare/lib/Template/Declare

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Mar 27 06:56:34 EDT 2007


Author: ruz
Date: Tue Mar 27 06:56:33 2007
New Revision: 3066

Modified:
   Template-Declare/lib/Template/Declare/Tags.pm

Log:
* change prototype of attr function so all tag functions
  on the same level are called in array context. This
  fixes a failing test in t/attributes.t

Modified: Template-Declare/lib/Template/Declare/Tags.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Tags.pm	(original)
+++ Template-Declare/lib/Template/Declare/Tags.pm	Tue Mar 27 06:56:33 2007
@@ -89,15 +89,15 @@
 =cut
 
 
-sub attr (&;$) {
-    my ( $code, $out ) = @_;
+sub attr (&;@) {
+    my $code = shift;
     my @rv = $code->();
     while ( my ( $field, $val ) = splice( @rv, 0, 2 ) ) {
 
         # only defined whle in a tag context
         append_attr( $field, $val );
     }
-    $out;
+    return @_;
 }
 
 


More information about the Jifty-commit mailing list