[Templates-svn] r1088 - trunk/lib/Template

svn@template-toolkit.org svn@template-toolkit.org


Author: abw
Date: 2007-05-30 11:40:25 +0100 (Wed, 30 May 2007)
New Revision: 1088

Modified:
   trunk/lib/Template/Stash.pm
Log:
applied patch from Jess Robinson which makes stash call list method on a single object

Modified: trunk/lib/Template/Stash.pm
===================================================================
--- trunk/lib/Template/Stash.pm	2007-05-29 13:37:02 UTC (rev 1087)
+++ trunk/lib/Template/Stash.pm	2007-05-30 10:40:25 UTC (rev 1088)
@@ -466,6 +466,9 @@
                 elsif ($value = $HASH_OPS->{ $item }) {
                     @result = &$value($root, @$args);
                 }
+                elsif ($value = $LIST_OPS->{ $item }) {
+                    @result = &$value([$root], @$args);
+                }
             }
             elsif (UNIVERSAL::isa($root, 'ARRAY') ) {
                 if( $value = $LIST_OPS->{ $item }) {