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

Shortcuts for importing and parsing YAML (and maybe JSON and other stuff) #878

Open
sbarzowski opened this issue Jan 8, 2021 · 0 comments

Comments

@sbarzowski
Copy link
Collaborator

Tanka used to have a feature which automagically parsed YAML when importing files with yaml extension. This turned out to cause problems with importstr and was disabled.

We can think about providing some kind of shortcut upstream. For example importyaml 'foo.yaml'.

Note that it's always possible to import as string and parse explicitly – std.parseJson(importstr 'foo.json').

See also: google/go-jsonnet#420

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

No branches or pull requests

1 participant