Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 51213
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: FRODWITH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Documentation missing for list 'item' vmethod
There's no documentation for the 'item' VMethod on lists, but it's there. Attached is a patch for Template::Manual::VMethods.
Subject: item_doc.patch
--- VMethods.pod 2009-11-08 16:39:56.000000000 -0800 +++ VMethods.pod.new 2009-11-08 16:42:27.000000000 -0800 @@ -554,6 +554,12 @@ [% hash.1 %] # beer [% hash.2 %] # peanuts +=head2 item + +Returns an item from the list using an index passed as an argument. + + [% list.item(0) %] # same as list.0 + =head1 Automagic Promotion of Scalar to List for Virtual Methods In addition to the scalar virtual methods listed in the previous
Ticket migrated to github as https://github.com/abw/Template2/issues/90