hi django-users I try to improve the performance of my web app and one of the things I want to do is render all occurrences of a certain tag at once instead of each on its own. The reason is simple: Each template tag loops over a series of regex pattern out of a database which it has to compile. Imagine the following:
for occurrence in templatetag: for pattern, substitution in database: regex = re.compile(pattern) regex.sub(substitution, occurrence.content) Now what I'd prefer is doing: for pattern, substitution in database: regex = re.compile(pattern) for occurence in templatetag: regex.sub(substitution, occurrence.content) Sort of collecting all tags in a template with that name and render them collectively. Any ideas how I can achieve that with a custom template tag? Jonas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---