Hi all,
Propose a new <script-template> widget tag that adds an external script inside
html head tag, or after body tag. The external script will contain the rendered
result of the specified template file location.
e.g.
<platform-specific>
<html>
<script-template
location="component://order/template/quote/test.ftl” placement=“head”/>
will render as:
<html>
<head>
…
<script src=“/ordermgr/control/js/<some random file name>.js”
type="application/javascript"/>
</head>
This will allow inline script from a freemarker file, to be rendered as
external script in html.
Regards,
James