[ https://issues.apache.org/jira/browse/OFBIZ-12099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17252788#comment-17252788 ]
ASF subversion and git services commented on OFBIZ-12099: --------------------------------------------------------- Commit 203fa5f1c1bc2ae34d964936e75a74fc7d79a457 in ofbiz-framework's branch refs/heads/trunk from James Yong [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=203fa5f ] Implemented: Support Freemarker square interpolation syntax (OFBIZ-12099) Use square interpolation syntax when file extension is .spi.ftl > Support Freemarker square interpolation syntax > ---------------------------------------------- > > Key: OFBIZ-12099 > URL: https://issues.apache.org/jira/browse/OFBIZ-12099 > Project: OFBiz > Issue Type: New Feature > Components: base > Affects Versions: Upcoming Branch > Reporter: James Yong > Assignee: James Yong > Priority: Minor > Fix For: Upcoming Branch > > > Support Freemarker square interpolation syntax [=...] when the freemarker > template filename ends with '.sqi.ftl'. This avoids sharing the same > interpolation syntax as Javascript's template literal. > > Discussion started at > https://lists.apache.org/thread.html/r485b78638f10f95089e5f1123d73a2d132a3f8c2faea0eb056fa1709%40%3Cdev.ofbiz.apache.org%3E > 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 > To test / migrate: > 1) Change template file extension from .ftl to .spi.ftl > 2) Use regular expresssion replacement: > From: \$\{([^${}]+)\} > To: [=$1] -- This message was sent by Atlassian Jira (v8.3.4#803005)