In my template, I use a sub-template that generates a piece of output. The template output must be shifted though (because the output is in YAML format). Is there any possibility to post-process template output?
{{ template "subtemplate" | indent 10 }}
This indent 10
is fictional, just to explain what I need.
It is possible (as @icza suggested) to save the output into a variable and then work with it, but maybe there is a better, more elegant approach?
{{$var := execTempl "subtemplate"}}
{{$var}}