title: How to indent content of included template
body: <p>I am using go templates to create yaml definitions for kubernetes. I am trying to nest templates but run into issues where I can't re-use a definition simply because the indention is wrong when included. I.e., in one case the contents need indentation but do not in another. How can I control the indention of included content?</p>
  
  <p>Example below. I am reusing pod.tmpl, in the first case it can be included as is. In the second case I need to indent the entire contents so it becomes member of service</p>
  
  <pre><code>{{ if (eq .Case "pod")
    # NO indenting
    {{ template "pod" }}
  {{ end }}
  
  {{ if (eq .Case "service")
    service:
      # need to indent! so contents become members of service:
      {{ template "pod" }}
  {{ end }}
  </code></pre>