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.2.1.tar.gz (2.1 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.1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for jinja2_ospath-0.2.1.tar.gz
Algorithm Hash digest
SHA256 233ee763f14a9722f3a459196405b472137b25344c0a40b1456ff53f427c200b
MD5 423592d7da3283f89e5661564aa1382c
BLAKE2b-256 504ada9cd3c371582d92bd19582b4e9a648792fcd593dccef40e2b5d48d0df79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jinja2_ospath-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 263cd454d8dc28256acee81d2850afdd3d3ed76d2c4e7d5084d27e146643099d
MD5 8ce56522c9548f9657c8edd0bb734d3e
BLAKE2b-256 f72f7a4b3cc6663a7c94e584858ac1746a1217f36fb3ee7b7d7a2bde0c40541f

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