I didn’t even acknowledge the TiddlyWiki community in this latest video, because I wasn’t thinking about how it could be of interest to TW folk.
Well, maybe it would be of interest to folk for this use case:
A TiddlyWiki instance (here the BAM Programming Reference) enhancing content by displaying (right there, in an iframe) related content coming from another TiddlyWiki instance (here, the BASIC Anywhere Machine IDE and source code repository.)
Done via the magic of
See the “Keyword Viewer” tiddler in the BASIC Anywhere Machine Programming Reference , where you’ll find a “{{||tKv}}”. The “tKv” template tiddler involves the “tEx” template tiddler which, finally, has the magic:
`
<iframe src={{{ [[https://basicanywheremachine.neocities.org/BAM_IDE.html?target=]] [split[#️⃣]first[]else] [[#View%20Program]] +[join[]] }}} style="width:100%;height:500px;resize:both;overflow:auto;"><$vars thisFilter={{{ [addprefix[(?i)\b]addsuffix[\b]] }}}>
<$list filter="[tag[sample]regexp:text]">
{{||fL}}
{{!!text}}</$list>
</$vars>
`
Dissecting BASIC Anywhere Machine TiddlyWiki’s “View Program” tiddler, you’ll find:
`
<$list variable=“thisTarget” filter="[[$:/info/url/search]get[text]removeprefix[?]split[&]removeprefix[target=]uppercase[]search-replace:g[%20],[ ]]" >
! <> Sample Programs
<$vars caselessTarget={{{ [search-replace[$],[]addprefix[(?i)\b]addsuffix[\b]] [split[]match[$]addprefix[]] +[join[]] }}}>
<$list filter="[tag[.bas]regexp:description]">
<>{{||Run Basic Program Button}}
{{!!text}}
`