#2343 closed enhancement (fixed)
[patch] make template.Library.inclusion_tag accept a list of template names
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
IMO, it is useful to make the inclusion_tag decorator to accept not only the template name as a string, but also as an iterable with possible template names - using select_template instead of get_template when an iterable passed.
Here's the patch.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | inclusion_tag.patch added |
---|
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [4038]) Fixed #2343: Library.inclusion_tag now accepts a list of template names along with a single name. Thanks, mderk@…