j2cli
j2cli copied to clipboard
Jinja2 Command-Line Tool, reworked
## Reproduce ``` $ j2 template.j2 data Traceback (most recent call last): File "/home/brlin/.local/bin/j2", line 8, in 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...
Python 2.6.6 (r266:84292, Jun 20 2019, 05:50:01) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2 j2cli==0.3.10 Jinja2==2.11.1 jinja2-cli==0.7.0 import j2cli `Traceback (most recent call last): File "", line 1, in...
The dependency on Jinja gets the latest version above 2.7.2. in their 3.0.0 version, they dropped python 2.7 and 3.5 support. The jinja dependency should have a max version set,...
It is possible to create a variable dynamicly with another variables something like {{ '"api_' + "BU_NAME"|env + '"' | env }} where BU_NAME is an env variables value "en"...
I'm trying to use `--customize` but it does not work as advertised if a data file is also used. The argument being passed to `alter_context` is a `filter` not a...
Hi, It would be really helpful to have a single-file-binary for the most common platforms (x86, x64, arm,...) instead of having to install a full python-stack into the docker-image. As...
This patch turns on [Jinja2 whitespace control]( http://jinja.pocoo.org/docs/2.10/templates/#whitespace-control) by default. This will greatly reduce the need to use manual whitespace control in the templates in order to produce good looking...