Open CharlesNepote opened 1 year ago
Hi, can I take up this issue?
Hi @MonalikaPatnaik , sure, certainly! Thank you!
Thanks @MonalikaPatnaik!
Also, thanks to @hangy advice, we can list other files which don't have any Perl variable:
Some other .tt.js files do have Perl variables but they could be easily rewrote:
Hi @CharlesNepote, I'm working on the issue..will try to wrap up by this weekend!
=> https://github.com/openfoodfacts/openfoodfacts-server/blob/main/templates/web/pages/product_edit/product_edit_form_display.tt.js
As discussed with @stephanegigandet there's not much sense to have this code in a template, full of escaped chars. It should be converted into raw JS, to ease development.