forked from github/pelican
Bug #1493 — Memoize slugify when possible
This commit is contained in:
parent
7feb638b5c
commit
e39dc95c3b
3 changed files with 4 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ def pelican_open(filename):
|
|||
content = content[1:]
|
||||
yield content
|
||||
|
||||
|
||||
@memoized
|
||||
def slugify(value, substitutions=()):
|
||||
"""
|
||||
Normalizes string, converts to lowercase, removes non-alpha characters,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue