Say I have {{ partial "li.html" $test $root.Data.Term }}
.
With this I can can access the first parameter, or $test
, by simply refering to .
within the li.html
template, but how do I access the second or additional parameter ($root.Data.Term
) from within the same template?
{{ partial "li.html" (dict "test" $test "Term" $root.Data.Term ) }}
, then access them with.test
and.Term
. Based-on: https://gohugo.io/functions/dict/ – Eyler