On Wed, Dec 05, 2007 at 05:10:31PM +0000, Andy Wardley wrote:
> In this case you can put a .list on the end of cart.items to explicitly
> upgrade a single item to a list:
> 
>   items = cart.items.list

That's what I thought, too.  Am I not doing this correctly?


In perl I added:

    $c->stash->{test} = [$cart->items];

Then in the template:

    items   = cart.items;

    count   = as_list( items ).size;
    count2  = items.list.size;
    count3  = test.size;

     " count = $count count2 = $count2 count3 = $count3 \n" | stderr;


And then I get:

 count = 1 count2 = 11 count3 = 1 


-- 
Bill Moseley
[EMAIL PROTECTED]


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to