xoxys.general/plugins/filters/prefix.py
2020-08-18 15:10:09 +02:00

12 lines
207 B
Python

"""Filter to prefix all itams from a list."""
def prefix(value, prefix="--"):
return [prefix + x for x in value]
class FilterModule(object):
def filters(self):
return {"prefix": prefix}