[
https://issues.apache.org/jira/browse/OFBIZ-7004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
james yong updated OFBIZ-7004:
------------------------------
Attachment: OFBIZ-7004.patch
Patch to allow adding inline FTL within html-template tag. See example below.
{code}
<platform-specific>
<html>
<html-template><![CDATA[<script>alert('From Inline FTL');</script>]]></html-template>
</html>
</platform-specific>
{code}
> Allow <html-template> to accept CDATA
> -------------------------------------
>
> Key: OFBIZ-7004
> URL:
https://issues.apache.org/jira/browse/OFBIZ-7004> Project: OFBiz
> Issue Type: Improvement
> Components: ALL APPLICATIONS
> Affects Versions: Trunk
> Reporter: james yong
> Assignee: james yong
> Priority: Minor
> Attachments: OFBIZ-7004.patch
>
>
> Currently, html-template tag accepts a location attribute.
> Propose that the html-template tag also accepts CDATA content.
> OFBiz will look for CDATA content if the location attribute is empty.
>
> The advantage is that we need not create a .ftl file whenever we add some html contents into the screen widget.
> I need some opinions before starting work on this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)