You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/16 16:14:00 UTC
[jira] [Closed] (OFBIZ-13675) FtlWriter: execute every macro call through one constant template
[ https://issues.apache.org/jira/browse/OFBIZ-13675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13675.
---------------------------------
Fix Version/s: Upcoming Branch
Resolution: Fixed
> FtlWriter: execute every macro call through one constant template
> -----------------------------------------------------------------
>
> Key: OFBIZ-13675
> URL: https://issues.apache.org/jira/browse/OFBIZ-13675
> Project: OFBiz
> Issue Type: Sub-task
> Components: framework/widget
> Affects Versions: Upcoming Branch
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
> Fix For: Upcoming Branch
>
>
> {{FtlWriter}} currently builds the text {{<@name?with_args($args$name)/>}} for each macro call and compiles a new template every time, so the compiled text still depends on the macro name. Set the macro name and the arguments as environment variables and include a single compiled constant template instead, which only calls a variable that is a macro, and expose it as the one helper the screen, menu, tree and form renderers use to run a macro call. The output of the macros is unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)