Skip to main content

Lektor plugin that adds a slugify Jinja filter.

Project description


This is a Lektor plugin that provides a simple template filter that transforms a (unicode) string into a slug.

Usage: {{ var|slug }}

Advanced usage: The |slug filter can also accept keyword arguements that are passed to python-slugify. That means you have the option of doing, for example, {{ var|slug(lowercase=False) }} to preserve case sensitivity.

This is a simple use of the Python package python-slugify.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lektor-slugify, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size lektor_slugify-0.4-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lektor-slugify-0.4.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page