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 return fs
.readFile(filepath, "utf-8") .readFile(filepath, "utf-8")
.then((content) => { .then((content) => {
content = JSON.stringify(scrub_html_template(content)); content = scrub_html_template(content);
return { return {
contents: `\n\tfrappe.templates['${filename}'] = ${content};\n`, contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n`,
watchFiles: [filepath], watchFiles: [filepath],
}; };
}) })