1 | 41,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)
|
---|
10 | 120c123
|
---|
11 | < def find_template(name, dirs=None):
|
---|
12 | ---
|
---|
13 | > def find_template(name, dirs=None, load_source=False):
|
---|
14 | 134c137
|
---|
15 | < source, display_name = loader(name, dirs)
|
---|
16 | ---
|
---|
17 | > source, display_name = loader(name, dirs, load_source)
|
---|