Jinja2 Extension for getting environment variables
Install this via pip (or your favourite package manager):
pip install jinja2-envThe extension class is jinja2_env.EnvExtension.
As a statement:
{% env "HOME" %}
{% env "HOME", default %}As a expression:
{{ "default" | env("HOME") }}Thanks goes to these wonderful people (emoji key):
34j 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!