This seems to work:

 <details>
      <summary>Helpers</summary>
      <$list filter="[tag[MyTag]sort[title]]">
        <$link><$view field="name" /></$link>
        <$codeblock language="javascript" code={{!!text}}  field="text" />
      </$list>
    </details>

Note this comment from tiddlywiki.com:

The content of the <$codeblock> widget is ignored.
>

HTH


On Monday, May 11, 2020 at 11:38:39 AM UTC-7, Scott Sauyet wrote:
>
> 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/ea817b48-f574-4ba4-b121-baa5ff713c6d%40googlegroups.com.

Reply via email to