A Jinja2 extension that introduces the template filters basename and dirname.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2_ospath-0.3.0.tar.gz
(2.1 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_ospath-0.3.0.tar.gz.
File metadata
- Download URL: jinja2_ospath-0.3.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f224b992a08bb73bc965907279eb8d63ac308435ee15c7f89c9306ccfac224d
|
|
| MD5 |
8ea285586152cd28c198cedc74e91a84
|
|
| BLAKE2b-256 |
f80043bc621b89fa1155debc25eb80e4c371e168b7c995e56167b35b21774e9c
|
File details
Details for the file jinja2_ospath-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: jinja2_ospath-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71eb1c8ffbbeaeeff5e01a2e07f39f8ebe6f8a6275ebab2ee70a6b9965838b6b
|
|
| MD5 |
70af6aabddff30c4992c9ce2cc118dbb
|
|
| BLAKE2b-256 |
6eebefcfeee9735596f9d410387c8dce782b1b100b3f39873fb9acf85f5c17c9
|