Ticket #15102: django.template.loader.patch

File django.template.loader.patch, 636 bytes (added by Vladislav Manchev, 13 years ago)

Template loader patch

Line 
141,42c41,45
2< def __call__(self, template_name, template_dirs=None):
3< return self.load_template(template_name, template_dirs)
4---
5> def __call__(self, template_name, template_dirs=None, load_source=False):
6> func = self.load_template
7> if load_source is True:
8> func = self.load_template_source
9> return func(template_name, template_dirs)
10120c123
11< def find_template(name, dirs=None):
12---
13> def find_template(name, dirs=None, load_source=False):
14134c137
15< source, display_name = loader(name, dirs)
16---
17> source, display_name = loader(name, dirs, load_source)
Back to Top