Is there a way to reverse the order of a foreach loop?
I did not see mention of it on the Template::Iterator manpage or
elsewhere...

Basically what I'm trying to do is iterate through a directory's
contents in reverse order.  I.e., something like:

[%- USE dir = Directory("$ttree_absdir/homepage") -%]
[%- FOREACH file = reverse(dir.files) %]
    [%- INCLUDE file.name %]
[%- END %]

Thanks,
Bryce


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to