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 hashes)
Built Distribution
Close
Hashes for jinja2_ospath-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71eb1c8ffbbeaeeff5e01a2e07f39f8ebe6f8a6275ebab2ee70a6b9965838b6b |
|
MD5 | 70af6aabddff30c4992c9ce2cc118dbb |
|
BLAKE2b-256 | 6eebefcfeee9735596f9d410387c8dce782b1b100b3f39873fb9acf85f5c17c9 |