My question is probably better illustrated with the following example.
The $codeblock
widget uses an attribute code
, and ignores the content:
<$codeblock code="my code"/>
I’m wondering if there is a way to override the widget so that it uses its content as the value of the code
attribute:
<$codeblock>
my code
</$codeblock>
I’m imagining something like:
\widget $codeblock()
<$genesis $type="$codeblock" $remappable="no" code=<<widgetContent>> />
\end
I can see that the content of a widget can be accessed via the $slot
widget (https://tiddlywiki.com/#Custom%20Widgets), but obviously this can’t then be passed into another widget.
So is this at all possible with the new features in v5.3.0?