Skip to content
/ jinja2-env Public

Jinja2 Extension for getting environment variables

License

Notifications You must be signed in to change notification settings

34j/jinja2-env

Repository files navigation

jinja2-env

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

Jinja2 Extension for getting environment variables

Installation

Install this via pip (or your favourite package manager):

pip install jinja2-env

Usage

The extension class is jinja2_env.EnvExtension.

As a statement:

{% env "HOME" %}
{% env "HOME", default %}

As a expression:

{{ "default" | env("HOME") }}

Contributors ✨

Thanks goes to these wonderful people (emoji key):

34j
34j

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!