Pass parameters to functions

Try printf:

{{ $a := (partial (printf "'components/%s.html" .Params.slug) .) }}

You cannot have nested curly braces… recent, related

1 Like