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!
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.3.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jinja2_env-0.1.3.tar.gz.
File metadata
- Download URL: jinja2_env-0.1.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.8.0 pkginfo/1.11.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.0 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a5b538bb4e4e0619ef66d668c5621c1354eb7c4e8ce363a394acd03c7941b97
|
|
| MD5 |
0c10310fe5e9351bb789e76f10b154bf
|
|
| BLAKE2b-256 |
2e5714f7d10fb9f0a25bb8bc921942cfe327f3edc9ea5dca20b798e787843723
|
File details
Details for the file jinja2_env-0.1.3-py3-none-any.whl.
File metadata
- Download URL: jinja2_env-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.8.0 pkginfo/1.11.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.0 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7b35edd2bedaf0569d4f729fe3ad5da1481b28977df3f69b938cea8593425f6
|
|
| MD5 |
425dad0b2ef24ec82e28bf3e273ca27f
|
|
| BLAKE2b-256 |
01e192e9a6bd10db2ede4ffbfb78e73c91e6af041bf4e1bf0d4109714dd34d3a
|