On Tuesday, October 6, 2020 at 7:27:50 AM UTC-7, Jean-Pierre Rivière wrote:
>
> \define wcagList()
> <ul style="padding-left: 0;">
> <$list filter="[enlist{!!wcag21tech}]" variable=link-code>
> <li><$macrocall $name="wcag" ref=<<link-code>> /></li>
> </$list>
> </ul>
> \end
>
> Note also the call to the wcag macro using the macrocall widget. I would
> have tought that I could have instead written this:
> <li><<wcag $(link-code)$>></li>
>
You can only use the $(...)$ syntax to substitute values from variables
that are defined *outside* of the macro.
However, "link-code" is defined *inside* the macro, so you can only use the
<<link-code>> variable reference
which is why you also needed the $macrocall syntax.
-e
--
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/b8c296e7-0580-4d43-8a28-9d5ab7a3b256o%40googlegroups.com.