* Robert Hicks <[EMAIL PROTECTED]> [2006/06/11 19:38]: > > What about making an alias? loop.final? > > That seems like a good idea. :-)
It should be as simple as:
Index: lib/Template/Iterator.pm
===================================================================
RCS file: /template-toolkit/Template2/lib/Template/Iterator.pm,v
retrieving revision 2.68
diff -u -r2.68 Iterator.pm
--- lib/Template/Iterator.pm 2006/05/30 15:53:11 2.68
+++ lib/Template/Iterator.pm 2006/06/12 02:02:09
@@ -207,6 +207,7 @@
# alias NUMBER to COUNT for backwards compatability
$item = 'COUNT' if $item =~ /NUMBER/i;
+ $item = 'LAST' if $item eq 'final';
return $self->{ uc $item };
}
Untested, though.
(darren)
--
Don't be ashamed to say what you are not ashamed to think.
pgpIXrRPy2Uwc.pgp
Description: PGP signature
