anushas-dev / anushas-dev/jinja2-template-examples
Create an example for Configuration File Templates (e.g., Dockerfile, YAML)
Đang mở
good first issue
hacktoberfest
- Ngôn ngữ chính
- HTML
- Star
- 1
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Sharing a simple example here:
```python
template = Template("""
version: '3'
services:
web:
image: {{ image }}
ports:
- "{{ port }}:80"
""")
print(template.render(image="nginx:latest", port=8080))
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.