Replies: 1 comment
-
Interestingly enough, templates in the config work with gomplate version $ ./gomplate --config gomplate.yml
Template 1: Content of template one!
Template 2: Content of template 2!
$ ./gomplate --version
gomplate version 4.0.0-pre-2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't seem to get
templates
working in thegomplate.yml
config. First the files./tmp/gomplate/t1.tmpl
/tmp/gomplate/t2.tmpl
/tmp/gomplate/gomplate.yml
It works if the templates are specified on the command line.
According to the docs[1], specifying the templates in a gomplate config should do the same. Unfortunately there is no output.
$ gomplate --config gomplate.yml --in "Template 1: {{ template \"t1\" }}Template 2: {{ template \"t2\" }}"
Specifying the
in
template inside the gomplate config doesn't work either. Removing thetemplates
from the config makesin
work leading me to think something is wrong with specifyingtemplates
in the config.Am I misunderstanding how templates work in the config?
[1] https://docs.gomplate.ca/config/#templates
Beta Was this translation helpful? Give feedback.
All reactions