jinja2-env

Jinja2 Extension for getting environment variables

CC0-1.0 License

Downloads
118
Stars
2
Committers
3

jinja2-env

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):

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