Add json render

Implemented opportunity to use jinja code inside json files.
This commit is contained in:
AminovE99 2020-06-11 16:01:55 +03:00 committed by GitHub
parent 2f14adb0b5
commit 80678534f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ def is_static_file(path):
if ('.' not in path):
return False
extn = path.rsplit('.', 1)[-1]
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt', 'py'):
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt', 'py', 'json'):
return False
for app in frappe.get_installed_apps():