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.2.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for jinja2_ospath-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263cd454d8dc28256acee81d2850afdd3d3ed76d2c4e7d5084d27e146643099d |
|
MD5 | 8ce56522c9548f9657c8edd0bb734d3e |
|
BLAKE2b-256 | f72f7a4b3cc6663a7c94e584858ac1746a1217f36fb3ee7b7d7a2bde0c40541f |