#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.