On Wed, 2008-09-24 at 16:34 +0200, Johannes Dollinger wrote:
[...]
> tpl.render(Context({}, loader=PrefixLoader(['a', 'b', 'c'])))
> }}}
>
> This would fix #2949, #3544, #4278, #6834, and #7931. But it's a
> backwards incompatible change: If you rely on compile time side
> effects (e.g. {%
I should have made this more accessible ..
http://code.djangoproject.com/ticket/2949
"I want to be able to set the path to a directory that contains the
templates I want to render at runtime. [...] The basic thing I'm
looking for is to be able to load a template from a specific,
arbitrary
#7815[1]:
* Adds a loader kwarg to Context which should be something with a
get_template(name) function. Default would be django.template.loader.
* Provides get_template() and select_template() methods on Context.
These are used in {% include %}, {% extends %} and inclusion_tag.
* Caches