|
@@ -29,7 +29,7 @@ class TemplateLoader(object):
|
29
|
29
|
#
|
30
|
30
|
# @return str. String containing the HTML output of the processed templated
|
31
|
31
|
def render_to_html(self, template_file, template_vars={}, template_extra=None):
|
32
|
|
- loader = jinja2.FileSystemLoader(searchpath=self.search_path, followlinks=self.follow_links)
|
|
32
|
+ loader = jinja2.FileSystemLoader(searchpath=self.search_path)
|
33
|
33
|
environment = jinja2.Environment(loader=loader) if self.is_cache_active else jinja2.Environment(loader=loader,
|
34
|
34
|
cache_size=0)
|
35
|
35
|
template = environment.get_template(template_file)
|
|
@@ -68,4 +68,4 @@ class TemplateLoader(object):
|
68
|
68
|
# @param key str
|
69
|
69
|
# @return bool
|
70
|
70
|
def _is_allowed_template_key(self, key):
|
71
|
|
- return False if key in self.__class__.__reserved_template_keys else True
|
|
71
|
+ return False if key in self.__class__.__reserved_template_keys else True
|