Hi Pawan,

Yes, all FTL code in framework and plugins will be changed.
Changes can be done using regular expression for the replacement.
So migration for custom or existing code should be relatively simple.

Regards,
James

On 2020/12/12 11:50:34, Pawan Verma <pawan.ve...@hotwaxsystems.com> wrote: 
> 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 <
> jacques.le.r...@les7arts.com> 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
> >
> >
> 

Reply via email to