Jinja2 os.path Filters
A Jinja2 extension that introduces the template filters basename and dirname.
Examples
my_path = "/some/absolute/path/with/file.txt"
{{ my_path | basename }}
Will fill in 'file.txt'.
my_path = "/some/absolute/path/with/file.txt"
{{ my_path | dirname }}
Will fill in '/some/absolute/path/with'.
Copyright and Licensing
Copyright 2017, Moritz Emanuel Beber
Free software: 3-Clause BSD License
Metadata
Release files for jinja2-ospath 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jinja2_ospath-0.3.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jinja2_ospath-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 4.6 kB
Release files / jinja2_ospath-0.3.0.tar.gz
| Download URL | jinja2_ospath-0.3.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f224b992a08bb73bc965907279eb8d63ac308435ee15c7f89c9306ccfac224d
|
|
BLAKE2b-256 checksum How to use checksums |
f80043bc621b89fa1155debc25eb80e4c371e168b7c995e56167b35b21774e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / jinja2_ospath-0.3.0-py2.py3-none-any.whl
| Download URL | jinja2_ospath-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
71eb1c8ffbbeaeeff5e01a2e07f39f8ebe6f8a6275ebab2ee70a6b9965838b6b
|
|
BLAKE2b-256 checksum How to use checksums |
6eebefcfeee9735596f9d410387c8dce782b1b100b3f39873fb9acf85f5c17c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |