In the 5.3.2 prerelease we have the introduction of
support for <$list-template> and <$list-empty> as immediate children of the $ListWidget widget to specify the list item template and/or the empty template.
- Personally I am not sure of the value, including the
<$list-join> because I personally have what I feel are better ways to do the same.
However It makes me wonder, if inside the custom widgets, the naming of the slot widget could itself look for a matching fill widget, but a custom one, by the name used in the slot widget.
<$slot name=reportbody/>
Would then “look for” <$reportbody>something</$reportbody> rather than the fill widget, instead a automatically named custom widget.
I am sure it depends on the way the code works but this would be an acceptable approach, to me.
However I think an additional feature could be made to support this, have a more powerful feature added. I will update this reply soon.
[edited]
Perhaps someone here has some ideas but could we perhaps define custom widgets that can replace a generic fill widget, perhaps using the genesis widget that can replace the use of generic fill widgets with specific named ones, not unlike the list-template/list-item/list-join templates?
So then we can call our custom widget, containing custom fill widgets?
<$my.widget params
<$name1>a</$name1>
<$name1>b</$name1>
</$my.widget>
and within $my.widget
<$slot name=name1/>
<$slot name=name2/>
- part of this motivation is while making our custom widget is in “design time” and we can cope with obtuse widgets like $slot, but calling $my.widget is in “author time”, when we use and apply our development work. And we do this authorship multiple times, so the value of ease of use and reading, is much more valuable in the calling widget.