gotpl
gotpl copied to clipboard
support multiple yaml files
In case below.
yamls/ |- foo `- bar
# foo
this is {{.foo}}.
# bar
this is {{.bar}}.
# setting.yml
foo: FOO
bar: BAR
$ gotpl yamls/* < setting.yml
# this will be expanded => "gotpl yamls/foo.yml yamls/bar.yml < setting.yml"
I expected both yaml files to be output. But I got a result like that.
this is FOO
It seems there was a cause for how to use template.ParseFiles, so I fixed it.