#35602: Allow simple_tag to be defined and used in a for loop -------------------------------------+------------------------------------- Reporter: Henrique Lacreta | Owner: (none) Alves | Type: New feature | Status: closed Component: Template system | Version: 4.2 Severity: Normal | Resolution: wontfix Keywords: tag, simple_tag | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by Henrique Lacreta Alves):
Fair point, I didn't consider using "as", and it does seem a bit of a stretch extending the use of "simple_tag" when such a simple solution already exists. One thing I would consider though would be to add this as an example on Documentation. Using "simple_tag" as an iterable looks like a quite common scenario, and replacing it by an inclusion tag is an overkill most of the time. Do you think this would make sense/should I create a documentation suggestion? -- Ticket URL: <https://code.djangoproject.com/ticket/35602#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070190baf85878-f8ee121a-4267-4aed-add8-298b2ae45eab-000000%40eu-central-1.amazonses.com.