Skip to main content

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'.

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)

Uploaded Source

Built Distribution

jinja2_ospath-0.3.0-py2.py3-none-any.whl (2.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jinja2_ospath-0.3.0.tar.gz.

File metadata

File hashes

Hashes for jinja2_ospath-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7f224b992a08bb73bc965907279eb8d63ac308435ee15c7f89c9306ccfac224d
MD5 8ea285586152cd28c198cedc74e91a84
BLAKE2b-256 f80043bc621b89fa1155debc25eb80e4c371e168b7c995e56167b35b21774e9c

See more details on using hashes here.

File details

Details for the file jinja2_ospath-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jinja2_ospath-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 71eb1c8ffbbeaeeff5e01a2e07f39f8ebe6f8a6275ebab2ee70a6b9965838b6b
MD5 70af6aabddff30c4992c9ce2cc118dbb
BLAKE2b-256 6eebefcfeee9735596f9d410387c8dce782b1b100b3f39873fb9acf85f5c17c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page