xoxys.general/plugins/filters/wrap.py
2020-08-18 15:10: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}