Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments to datasource function ignored for MIME Type #672

Closed
hairyhenderson opened this issue Nov 9, 2019 · 0 comments · Fixed by #673
Closed

Arguments to datasource function ignored for MIME Type #672

hairyhenderson opened this issue Nov 9, 2019 · 0 comments · Fixed by #673
Assignees
Labels

Comments

@hairyhenderson
Copy link
Owner

Whoops:

$ gomplate -d dir=/mydir -i {{ (datasource "dir" "config.json").foo.bar }}
template: <arg>:1:21: executing "<arg>" at <"config.json">: can't evaluate field foo in type string

Also, using a ?type= query param in the arg should work too, since it's (generally) just appended to the datasource URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant