Hi James,
What is the scope of this effort? Are we talking about changing it to all
the FTL code?
AFAIK, When square bracket interpolation syntax is used, ${expression} and
#{expression} in the template will be just static text, which is printed
as-is. That means all the existing code will become stale, we need to
change that also.
And there will also be concern about migration from lower-release to
higher-release.
Please share your thoughts on this.
--
Thanks & Regards
Pawan Verma
Technical Consultant
*HotWax Systems*
*Enterprise open source experts*
http://www.hotwaxsystems.com
On Sat, Dec 12, 2020 at 3:59 PM Jacques Le Roux <
[email protected]> wrote:
> Hi James,
>
> I see no problems with that: +1
>
> Jacques
>
> Le 12/12/2020 à 10:43, James Yong a écrit :
> > 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
>
>