A Jinja2 extension that introduces the filters basename and dirname.
Project description
# Jinja2 os.path Filters
A Jinja2 extension that introduces the filters basename and dirname.
## Examples
`Python my_path = "/some/absolute/path/with/file.txt" {{ my_path | basename }} `
Will fill in file.txt.
`Python 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](mailto:midnighter@posteo.net)
Free software: [3-Clause BSD License](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.2.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for jinja2_ospath-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b33e8ece36899ff35e3174743e53b3ae2d8c41e11a733f68ba1f88953a18036 |
|
MD5 | ee79f32b9fe3514aed0d0bb05366babd |
|
BLAKE2b-256 | 3e47525d77d8060292c47e9f7eea4e53b6dd56a8e2fd95f32119c89cb8596bdf |