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
Release history Release notifications | RSS feed
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)