1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00
dockerfiles/jinjanator/README.md

15 lines
445 B
Markdown
Raw Normal View History

2024-10-15 06:26:38 +02:00
jinjanator
==========
[jinjanator][1] is a CLI tool to render Jinja2 templates.
```bash
2024-10-15 07:07:05 +02:00
$ alias jinjanate='docker run --rm -i -v $PWD:/tmp -w /tmp vimagick/jinjanator --quiet'
2024-10-15 06:26:38 +02:00
$ 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>
```
[1]: https://github.com/kpfleming/jinjanator