On 7/31/07, sime <[EMAIL PROTECTED]> wrote:
> Hi all I have a patch to the regroup tag which allows --
>
> Regroup into any number of groups, of set size --
> {% regroup list every 4 as grouped %}
>
> Regroup into set number of groups, at any size --
> {% regroup list into 4 as grouped %}
>
> I've found this indispensable in rendering unordered lists where the
> li list items needed to be spread between multiple ul elements. Could
> also be useful for tables and other html, even calendars.Hi sime, I've accomplished the same thing with a template filter called "bunch" -- it converts a list into a list of tuples that have been bunched. I'd rather add a "bunch" filter than make this change to the regroup tag, because this would completely change the meaning of the regroup tag. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
