﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1650	[patch] Allow templates to extend from parents in local context	clelland@…	Adrian Holovaty	"It can be useful for templates to extend a base template which does not necessarily exist on the filesystem -- for example, the base template may be stored in the database, or it may be generated at runtime.

This patch allows a template object in the curent context to be used as a base template for inheritance.

Example:

{{{
>>> from django.template import Context, Template, loader
>>> child = Template(""{% extends parent %}{% block one %}Hello, {{ name }}{% endblock %}"")
>>> parent = Template(""<h1>{% block one %}Name{% endblock %}</h1>"")
>>> child.render(Context({'name': 'World', 'parent': parent}))
}}}

returns ""<h1>Hello, World</h1>"""	enhancement	closed	Template system	magic-removal	normal	fixed			Unreviewed	1	0	0	0	0	0
