xoxys.general/plugins/filter/wrap.py
Robert Kaussow b84f50ed71
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
fix filter plugin folder
2020-08-18 17:53:09 +02:00

12 lines
210 B
Python

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