the shortcode ranges over a front matter parameter
.
range $.Page.Params.table
my question is the following – is there way to pass in the variable to range over ?
I have tried
{{ range range (printf “%s%s” “$.Page.Params.” (.Get 0) ) }} to select another table to print out
but I keep getting the error
execute of template failed: template: shortcodes/table2.html:7:47: executing “shortcodes/table2.html” at <0>: range can’t iterate over $.Page.Params.table
Is there a way to dynamically create a function method ?