I would like to grab some code for a codeblock from the text of another
tiddler, all taking place inside a <$list>. This is what I tried:
<details>
<summary>Helpers</summary>
<$list filter="[tag[MyTag]sort[title]]">
<$link><$transclude field="name" mode="block"/></$link>
<$codeblock language="javascript"><$transclude field="text"
mode="block"/></$codeblock>
</$list>
</details>
But that doesn't properly get the text. Just plain transcluding the field
works fine:
<$transclude field="text" mode="block"/>
And of course a codeblock that gets its data from another tiddler works
fine:
<details>
<summary>Schema</summary>
<$codeblock code={{MyTiddler}} language="json"/>
</details>
But my attempt to combine them didn't work. Nor did several other syntaxes
I guessed at. Is there a good way to do this?
-- Scott
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c7166840-133e-4a24-bfa1-a49c49c64e6d%40googlegroups.com.