But I am always hoping there can be a normal tw page with lazy loading, so it can be also dynamic and small…
For log widget, I recently copy the wikitext from tw core’s “tag input” to my calendar plugin
omg that was too complicated, so I add it inside the button widget:
const textMacros = `
\\define tag-styles()
background-color:$(backgroundColor)$;
fill:$(foregroundColor)$;
color:$(foregroundColor)$;
\\end
\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)
\\whitespace trim
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
<$button class="tc-tag-label" style=<<tag-styles>>>
<$log />
<$macrocall $name="tag-tree-button-action" tiddlerName=<<currentTiddler>>/>
<$transclude tiddler="""$icon$"""/>
<$transclude field="caption">
<$view field="title"/>
</$transclude>
</$button>
</$vars>
\\end
`;
and see the browser console, check the variable and found it is empty string, so there are something wrong in the vars widget, and I fixed it.