Hi James,

I cannot recall having any problems with that during the last 18 years of running OFBiz projects.

Can you give us a real world example where this really is a problem?

Besides this, I am not in favour of a forced change in all of the codebase. Wouldn't it be possible to use both ways, leaving it up to the developer to use the [=...] Syntax where necessary?

Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 12.12.20 um 10:43 schrieb James Yong:
Hi all,

Currently interpolation syntax used for freemarker template is ${...}.
This is the same as the interpolation syntax for template literal in javascript.
As a result, extra coding is needed to escape the interpolation expression for 
javascript coding with freemarker template.

Propose to change the use of ${...} to [=...] for freemarker template.

Reference:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
https://freemarker.apache.org/docs/dgui_misc_alternativesyntax.html#dgui_misc_alternativesyntax_interpolation

Regards,
James

Reply via email to