1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00
dockerfiles/jinjanator
2024-10-15 13:07:05 +08:00
..
Dockerfile add jinjanator 2024-10-15 12:26:38 +08:00
README.md update jinjanator 2024-10-15 13:07:05 +08:00

jinjanator

jinjanator is a CLI tool to render Jinja2 templates.

$ alias jinjanate='docker run --rm -i -v $PWD:/tmp -w /tmp vimagick/jinjanator --quiet'
$ echo '<data><name>{{ name }}</name><age>{{ age }}</age></data>' > person.xml.j2
$ echo '{"name":"Andrew", "age":31}' > person.json
$ jinjanate person.xml.j2 person.json
<data><name>Andrew</name><age>31</age></data>