title: Helm tpl function to render a file does not work
body: <p>I am trying to render a file using the tpl function. I am retrieving the content of the file using Files.Get, which works fine until I use tpl function on it.</p>
  <p>My input file is:</p>
  <pre><code>apiVersion: autoscaling/v2beta2
  </code></pre>
  <p>My helm template is:</p>
  <pre><code>{{- $files := .Files }}
  {{- tpl ($files.Get &quot;files/autoscaling.yaml&quot; ) . -}}
  </code></pre>
  <p>I had to use $files because it would throw the error:</p>
  <blockquote>
  <p>at &lt;.Files.Get&gt;: can't evaluate field Files in type interface {}</p>
  </blockquote>
  <p>The output that I see when I run the helm template is</p>
  <pre><code>Error: template: subchart-demoapp/templates/sub-deployments.yaml:5:47: executing &quot;subchart-demoapp/templates/sub-deployments.yaml&quot; at &lt;.&gt;: wrong type for value; expected chartutil.Values; got string
  helm.go:84: [debug] template: subchart-demoapp/templates/sub-deployments.yaml:5:47: executing &quot;subchart-demoapp/templates/sub-deployments.yaml&quot; at &lt;.&gt;: wrong type for value; expected chartutil.Values; got string
  </code></pre>
  <p>My helm version is:</p>
  <pre><code>version.BuildInfo{Version:&quot;v3.2.1&quot;, GitCommit:&quot;fe51cd1e31e6a202cba7dead9552a6d418ded79a&quot;, GitTreeState:&quot;clean&quot;, GoVersion:&quot;go1.13.10&quot;}
  </code></pre>
  <p>Thanks for any help.</p>