semvec/pypi-packages huggingface dataset:
lektor-slugify 0.4
Lektor plugin that adds a slugify Jinja filter.
License: BSD-3-Clause
Keywords: Lektor plugin static-site slug jinja2 jinja filter

# 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](https://github.com/un33k/python-slugify).