Jinja2 Extension for getting environment variables
Project description
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):
34j 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2_env-0.1.2.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for jinja2_env-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3df28d0a3c03d292b4eea2ae2341557added11332d2f23d4d18adbd2107189 |
|
MD5 | 901089a0d48dd840c3adc2a1db9d893b |
|
BLAKE2b-256 | 5184fc79f66f6e5a4f4944c5e691f373c7fdd1dc534ed8d7329d34ff157505ac |