From 80678534f205fc48ea0d2c64ac74bf7fe9b83fa2 Mon Sep 17 00:00:00 2001 From: AminovE99 <32329685+AminovE99@users.noreply.github.com> Date: Thu, 11 Jun 2020 16:01:55 +0300 Subject: [PATCH] :sparkles: Add json render Implemented opportunity to use jinja code inside json files. --- frappe/website/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/website/render.py b/frappe/website/render.py index d5269ed1cb..73fb3fbd38 100644 --- a/frappe/website/render.py +++ b/frappe/website/render.py @@ -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():