Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#2343 closed enhancement (fixed)

[patch] make template.Library.inclusion_tag accept a list of template names

Reported by: mderk@… 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


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)

inclusion_tag.patch (841 bytes) - added by mderk@… 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by mderk@…

Attachment: inclusion_tag.patch added

comment:1 Changed 12 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [4038]) Fixed #2343: Library.inclusion_tag now accepts a list of template names along with a single name. Thanks, mderk@…

Note: See TracTickets for help on using tickets.
Back to Top