2
0
mirror of https://github.com/frappe/frappe.git synced 2024-06-13 04:42:20 +00:00

Revert "fix: allow backtick in HTML templates as well"

This reverts commit 2f96458bcb.
This commit is contained in:
Ankush Menat 2022-10-12 18:50:12 +05:30
parent ab3f706948
commit 17e546f1a5

View File

@ -18,9 +18,9 @@ module.exports = {
return fs
.readFile(filepath, "utf-8")
.then((content) => {
content = JSON.stringify(scrub_html_template(content));
content = scrub_html_template(content);
return {
contents: `\n\tfrappe.templates['${filename}'] = ${content};\n`,
contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n`,
watchFiles: [filepath],
};
})