Skip to content

Commit

Permalink
added missing deps, per @mattrobenolt/jinja2-cli README.md (#13)
Browse files Browse the repository at this point in the history
* added missing dep, per @mattrobenolt/jinja2-cli README.md
  • Loading branch information
dinuta authored May 10, 2020
1 parent 8266ae0 commit dd7d737
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ script:
dinutac/jinja2docker:latest
/data/json.j2 /variables/json.json --format=json

- docker run --entrypoint jinja2
-v $TRAVIS_BUILD_DIR/inputs/templates:/data
-v $TRAVIS_BUILD_DIR/inputs/variables:/variables
dinutac/jinja2docker:latest
/data/yml.j2 /variables/yml.yml --format=yaml

after_success:
- coveralls

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Example {{yourYamlVariableHere | yaml | safe }}
```yaml.dump(value, sys.stdout, Dumper=yaml.RoundTripDumper, indent=4)``` tested, keeps indentations but does not glue yaml chunk where needed)
```yaml.dump(value, Dumper=yaml.RoundTripDumper, indent=4)``` this is the current implementation, but does not keep indentations for large chunks of yaml)

The recommendation is either paste selectively smaller chunks of yaml or use json whenever possible.
The recommendation is either paste selectively smaller chunks of yaml or use json whenever possible, or use [jinja2-cli](#latest-updates) embedded in this docker image.

## Latest updates

Expand All @@ -101,6 +101,7 @@ dinutac/jinja2docker:latest /data/standalone.j2 /variables/variables.yml --forma
```

### 2. Added flask restful server

[Info in wiki](https://github.com/dinuta/jinja2docker/wiki)
[Collection](https://documenter.getpostman.com/view/2360061/SVYjUN7j)

9 changes: 6 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
flask
PyYAML
toml
xmltodict
jinja2-cli

flask
requests
parameterized
python-coveralls
Expand All @@ -8,8 +12,7 @@ httplib2
urllib3
simplejson
Jinja2
jinja2-cli
flask_restplus
jsonify
flask_swagger_ui
flask_cors
flask_cors

0 comments on commit dd7d737

Please sign in to comment.