Skip to main content

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

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.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jinja2_ospath-0.1.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: jinja2_ospath-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jinja2_ospath-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93e58b21a7abfa56a4d1d97f85f715d02bfed5f31426c2b55027227435180e17
MD5 4fd54dfa583d4537c22d9870e000e564
BLAKE2b-256 45b0c77f80d4ad39eaef82889820fb902678960f9cd46180bff0cbc6e0394b4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jinja2_ospath-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2fdfc38c680758f72376a0bfe1cf149edc6fa2aa681916da0cb768b0e2f3ecef
MD5 6f8856caff5a536e7c1aef68bb667f73
BLAKE2b-256 01d5d6edc003da3c36fb23c05bdddd5da207cd7f45338f094cb429aec4cdb94b

See more details on using hashes here.

Supported by

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