Lektor plugin that adds a slugify Jinja filter.
Version: 0.4
Author: Terminal Labs, Michael Verhulst, Joseph Nix
View all tags.
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.
Comments