You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
$ j2 template.j2 data
Traceback (most recent call last):
File "/home/brlin/.local/bin/j2", line 8, in <module>
sys.exit(main())
File "/home/brlin/.local/pipx/venvs/j2cli/lib/python3.6/site-packages/j2cli/cli.py", line 206, in main
sys.argv[1:]
File "/home/brlin/.local/pipx/venvs/j2cli/lib/python3.6/site-packages/j2cli/cli.py", line 138, in render_command
}[os.path.splitext(args.data)[1]]
KeyError: ''
Expected behavior
j2cli detect data type automatically
j2cli fails with a friendly message regard the issue (e.g., Error: _data_ must have the following filename extensions: ...)
Version
j2cli 0.3.10, Jinja2 2.11.1
installed via pipx
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reproduce
Expected behavior
data
type automaticallyError: _data_ must have the following filename extensions: ...
)Version
j2cli 0.3.10, Jinja2 2.11.1
installed via pipx
The text was updated successfully, but these errors were encountered: