|
@@ -24,7 +24,8 @@ def get_template(path): |
|
|
return get_jenv().get_template(path) |
|
|
return get_jenv().get_template(path) |
|
|
|
|
|
|
|
|
def render_template(template, context): |
|
|
def render_template(template, context): |
|
|
context.update(get_allowed_functions_for_jenv()) |
|
|
|
|
|
|
|
|
if not "frappe" in context: |
|
|
|
|
|
context.update(get_allowed_functions_for_jenv()) |
|
|
template = Template(template) |
|
|
template = Template(template) |
|
|
return template.render(**context) |
|
|
return template.render(**context) |
|
|
|
|
|
|
|
|