Without a dump of the data which is being sent to template toolkit or a clearer description of how you want them grouped it is difficult to say.
Assuming you have an array of hashes named files, with date as a key in each hash, containing the date as formatted in your question. You could do something like this.
[% FOREACH file=files %] [% IF ( matches = file.date.match('dd/mm/(\d+)') ) %] <a href='#'>[% matches.0 %]</a> [% END %] [% END %]
In reply to Re: Template Toolkit foreach loop
by rnewsham
in thread Template Toolkit foreach loop
by Dr3am3rz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |