Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2343 closed enhancement (fixed)

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

Reported by: mderk@… Owned by: adrian
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: UI/UX:

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@… 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by mderk@…

comment:1 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(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