mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
update jinjanator
This commit is contained in:
parent
a5e4dc8fe4
commit
fd84c5a5d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user