Django

Code

Ticket #2343 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: mderk@yandex.ru Assigned to: adrian
Milestone: Component: Template system
Version: Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

inclusion_tag.patch (0.8 kB) - added by mderk@yandex.ru on 07/13/06 06:36:04.

Change History

07/13/06 06:36:04 changed by mderk@yandex.ru

  • attachment inclusion_tag.patch added.

11/06/06 22:13:07 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2343 ([patch] make template.Library.inclusion_tag accept a list of template names)




Change Properties
Action