mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +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.
|
[jinjanator][1] is a CLI tool to render Jinja2 templates.
|
||||||
|
|
||||||
```bash
|
```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 '<data><name>{{ name }}</name><age>{{ age }}</age></data>' > person.xml.j2
|
||||||
$ echo '{"name":"Andrew", "age":31}' > person.json
|
$ echo '{"name":"Andrew", "age":31}' > person.json
|
||||||
$ jinjanate person.xml.j2 person.json
|
$ jinjanate person.xml.j2 person.json
|
||||||
|
Loading…
Reference in New Issue
Block a user