enhancement
minor
#27320
Layout XML: Use of template parameters for inner template calls
When instantiating layout templates, it is possible to populate a `tl:LayoutComponent` property by instantiating another layout template. The goal here is to make it possible to use arguments from the outer template call when calling the inner template.
Example
There is a template "outer.template.xml" with a "dialogs" parameter that expects a list of LayoutComponents. There is also a template "inner.template.xml" that expects a "typeOptions" parameter.
The following template expects a "modelType" parameter and wants to "call" "inner.template.xml" and use the "modelType" parameter in the arguments for "inner.template.xml".
<config:template
xmlns:config="http://www.top-logic.com/ns/config/6.0"
assistant-for="outer.template.xml"
>
<properties>
<property name="modelType" type="String" />
</properties>
<config>
<dialogs>
<config:template-call template="inner.template.xml">
<arguments>
<typeOptions type="${modelType}"/>
</arguments>
<config>
</dialogs>
</config>
</config:template>
Test
Used in the test for #27332.