This would be very handy for dynamic template selection. For example i would override some templates based on type of content rendered.
render_template(['%s.html % type, 'index.html'])
Allow loading template from iterable
You can already choose a template using a Jinja loader:
Does this gisted approach suffice?
It so much code, and i would say that it solves more global problem than just selecting templates. Also this has no drawbacks, because Jinja will not do any extra work if you pass it string.
This is very small change for IMO often used approach to custom templates.
Add updates to render_template to CHANGES, #409.
You're right, the Jinja loader approach solves the general problem, and your pull request exposes in render_template methods that Jinja already has available. Pulled, thanks.