12 lines
207 B
Python
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}
|