Yeah, it looks like you’ve found a use for /widget, and it also looks like you agree that it’s over verbose. Before v5.3.x, I would have done something like this:
<<list-report "[tag[TableOfContents]]"
header:"""
!!Your report header
"""
footer: """
<small> Your report footer</small>
""" >>
Funny thing is, even though I’m committing the cardinal sin of putting wikitext into attributes, this works just fine. I use patterns like this all the time (and it’s less verbose).
What I would love is if the pattern I described above would work. I think that would be a super clean solution. E.G.
\widget $list.header() <$fill $name=header><$slot $name=ts-raw>Empty</$slot></$fill>
If that could work, then this would be a neat feature. I guess the widget doesn’t unfold enough in the parse tree or something? Not sure why the outer $list.report couldn’t find that buried $fill.