hello! i would like to iterate over an array of hashes, but i need to be able to define the order of the listing.
i have: [% FOREACH setting IN parameters.keys %] [% DO STUFF HERE - about 100 lines %] [% END %] there are only four different parameters/settings, and i need to display everything the exact same way, so copying this four times is not really good. this is in development, so it will change. there may be even 5 or 6 or more parameters in the future. problem is - i need to be able to define the order in which the settings are displayed. [no problem writing the key names somewhere in the template - they won't change too often] (it's wrong at the moment and if i fix it may get wrong in the future) it's for a webpage and the order is important, because there is some logic and dependencies between the settings. is this possible in some way to avoid code duplication? thanks! stefan _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates