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 hashes)

Uploaded Source

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