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.2.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.2.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for jinja2_ospath-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1e73c55af70357dd2f062535953afccc587e48674a9f31849674210565c14d1e
MD5 40eb2a3d37550abe3f05a6c03f023348
BLAKE2b-256 21d5d34c38616da67c9889d1ca5043aa8d99282613dd8b91af0292b4ecb1d60a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jinja2_ospath-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b33e8ece36899ff35e3174743e53b3ae2d8c41e11a733f68ba1f88953a18036
MD5 ee79f32b9fe3514aed0d0bb05366babd
BLAKE2b-256 3e47525d77d8060292c47e9f7eea4e53b6dd56a8e2fd95f32119c89cb8596bdf

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