Opened 18 years ago

Closed 17 years ago

Last modified 17 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

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)

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

Download all attachments as: .zip

Change History (2)

by mderk@…, 18 years ago

Attachment: inclusion_tag.patch added

comment:1 by Jacob, 17 years ago

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