Ticket #2343: inclusion_tag.patch
File inclusion_tag.patch, 841 bytes (added by , 18 years ago) |
---|
-
__init__.py
862 862 dict = func(*args) 863 863 864 864 if not getattr(self, 'nodelist', False): 865 from django.template.loader import get_template 866 t = get_template(file_name) 865 from django.template.loader import get_template, select_template 866 if hasattr(file_name, '__iter__'): 867 t = select_template(file_name) 868 else: 869 t = get_template(file_name) 867 870 self.nodelist = t.nodelist 868 871 return self.nodelist.render(context_class(dict)) 869 872