Lektor plugin that adds a slugify Jinja filter.
Project description
lektor-slugify
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
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
lektor-slugify-0.4.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for lektor_slugify-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df075b644f0744a583d84d9ea25b3b29bb86e3368350011a564150d59380f928 |
|
MD5 | 7f6d8d372bc98b2e9a71a46a272405f9 |
|
BLAKE2b-256 | 4cb3dce142ce80ef5c3a34fa7bf15de11546a1abdd984cc63f9e6d5cf058bda1 |