Nothing like this exists currently. It should not be hard to write
this template yourself, though, something like this might do the
trick:
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def render_object(context, object):
return render_to_string(object.template.path, {'object': object},
context_instance=context)
takes_context is not required but it might be useful.
Matthias
Of course! I think that's quite elegant :-)
No need to write a custom template tag with Django's improved {% include %} tag.
Matthias