do you have any examples on how to use variables from parent shortcode in a nested shortcode
i tried:
tree.html
{{ $foo := 15 }}
<div>{{ .Inner }}</div>
and leaf.html
<div>{{ with .Parent }}{{ $foo }}{{ end }}</div>
or
<div>{{ .Parent.Get "$foo" }}</div>
or
<div>{{ index .Parent "$foo" }}</div>
None worked
Only option I got working was to define param as an attribute, with leaf.html
<div>{{ .Parent.Get "foo" }}</div>
{{% tree foo="15" %}}
{{% leaf %}}
{{% /tree %}}