Skip to main content

Jinja2 Extension for creating slugs

Project description

Jinja2 Extenson for creating slugs. It can be used to create URLs. It uses the unicode-slugify module.

Installation

jinja2-slug is available for download from PyPI via pip:

$ pip install jinja2-slug

Usage

from jinja2 import Environment


env = Environment(extensions=['jinja2_slug.SlugExtension'])

template = env.from_strong('This is a test')

template.render()

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-slug-0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file jinja2-slug-0.1.tar.gz.

File metadata

  • Download URL: jinja2-slug-0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jinja2-slug-0.1.tar.gz
Algorithm Hash digest
SHA256 c64a42ad88d791d57c4efed025aadf99093cd65103d77771cc5bfbeb03bca3db
MD5 e3f8d39b1abf245bd925bbb0d2720558
BLAKE2b-256 862c9ccbbaa2326083499c62e1e42a3e04db80c14a8907642014acadc2c34a9b

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