#21747: The {% elif %} templatetag could use documentation -------------------------------+-------------------- Reporter: gcc | Owner: nobody Type: New feature | Status: new Component: Documentation | Version: 1.6 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- The [https://docs.djangoproject.com/en/dev/topics/templates/ Django templates page] makes no mention of the {% elif %} tag, although it does document {% if %} and {% else %}.
I was curious so I went digging in the source, and discovered that {% elif %} is implemented. It even has doc comments: {{{ {% if athlete_list %} Number of athletes: {{ athlete_list|count }} {% elif athlete_in_locker_room_list %} Athletes should be out of the locker room soon! {% else %} No athletes. {% endif %} }}} It would be great to have it officially documented on the Templates page. -- Ticket URL: <https://code.djangoproject.com/ticket/21747> 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 post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/046.ae5b4fd385f1d398c2c1f7e89fda9be8%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.