I’ve got the following:
title: $:/images/jam/pizza-slice
text: --svg code--
title: pizza
tags: kind
icon: $:/images/jam/pizza-slice
And I’m iterating through all kinds with the following:
<$list filter="[tag[kind]]" variable="currentKind">
<!-- currentKind icon should be displayed here -->
<$link to=<<currentKind>> />
</$list>
I’m trying to display each kind's icon right next to its link and no matter what I’ve tried I cannot figure out the correct syntax.
I’ve tried a straight <$transclude $tiddler={{pizza!!icon}} /> and it works, but how can I do the same with a rolling variable instead of a fixed tiddler reference?
PS I know the variable use in this case is superfluous, but this is a simplified example. In my actual case it’s a multi-layered list and it helps me having clear variables on each layer instead of relative <<currentTiddler>>s.
