j2cli
j2cli copied to clipboard
Jinja2 Command-Line Tool, reworked
I would like to take the template file instead of the data from STDIN. For example with environment variables like this: ``` echo "Hello {{ name }}!" | NAME=World j2...
I would love to have support for multiple template dirs to solve relative imports. Something on the line to what is suggested here https://stackoverflow.com/questions/2180247/does-the-jinja2-templating-language-have-the-concept-of-here-current-director
could we have features in j2 to get the values from AWS SSM parameter store or AWS Secrets manager directly? Or this feature is available is already exist some where?...
On 0.3.12b0, the exit code of `j2cli -v` and `j2cli -h` is 1. This is a change from 0.3.10, where the exit code there was 0. I see that 26a67e9419d96b7f92871e8b93dba00306c5df0b...
Environment variables only working when executed interactively (`jinja2.exceptions.UndefinedError`)
Command ``` j2 1.txt.j2 -o 1.txt ``` Fails when executed within a script against this file (`jinja2.exceptions.UndefinedError: 'PATH' is undefined`): ``` {{ PATH }} ``` But works when executed within...
I could easily be using j2cli for a script that I wrote that just writes a RHEL kickstart file from a template but j2cli chokes on the ansible vault encrypted...
The current implementation allows loading custom filters from Python files by using the `--filters` argument. My problem is I have compiled Python files, i.e Python bytecode (.pyc files) and passing...
```yaml container_env: mongo_servers: '{{ mongo_servers | to_json }}' ``` consider creation of ENV variable on into Docker Container, couldn't pass object but a serialized json string. ```json "mongo_servers": [ {...
If I have a foo.yaml: ``` --- vendors: - A - B - C questions: - Q1: {{ vendor }} foo - Q2: {{ vendor }} foo ``` and a...
I wanted to use j2 to transform some JSON from the GitLab API, but the entryxoint I'm calling returns a JSON array of dictionaries. The JSON loader assumes that it...