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 details)
Built Distribution
File details
Details for the file lektor-slugify-0.4.tar.gz
.
File metadata
- Download URL: lektor-slugify-0.4.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01f3cd83880755471bc0a4bdda6f107b9652f2ead2490fc4cac62b7ee8a33448 |
|
MD5 | 0c22cd9126aecf3fede9023bdb50f256 |
|
BLAKE2b-256 | 19328349adaf8a34f358727974744a535c5d305cfa7947cef0f7c7d1743c025d |
File details
Details for the file lektor_slugify-0.4-py3-none-any.whl
.
File metadata
- Download URL: lektor_slugify-0.4-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df075b644f0744a583d84d9ea25b3b29bb86e3368350011a564150d59380f928 |
|
MD5 | 7f6d8d372bc98b2e9a71a46a272405f9 |
|
BLAKE2b-256 | 4cb3dce142ce80ef5c3a34fa7bf15de11546a1abdd984cc63f9e6d5cf058bda1 |