String literal works, but (seemingly) equivalent argument doesn't?

It looks like Hugo’s partial is enforcing the rule laid out by Go’s text/template of only allowing static names. Variables in Go, even if they represent literals, don’t meet this test and an error is generated.

I was able to get it working by using {{ partial (printf "%s" $partialName) . }} instead.