1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

update jinjanator

This commit is contained in:
kev 2024-10-15 13:07:05 +08:00
parent a5e4dc8fe4
commit fd84c5a5d3

View File

@ -4,7 +4,7 @@ jinjanator
[jinjanator][1] is a CLI tool to render Jinja2 templates.
```bash
$ alias jinjanate='docker run --rm -v $PWD:/tmp -w /tmp vimagick/jinjanator'
$ 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