2020-08-18 13:10:09 +00:00
|
|
|
"""Filter to wrap all items from a list."""
|
|
|
|
|
2023-12-13 10:23:28 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
2023-01-31 19:09:29 +00:00
|
|
|
|
|
|
|
__metaclass__ = type
|
|
|
|
|
2020-08-18 13:10:09 +00:00
|
|
|
|
|
|
|
def wrap(value, wrapper="'"):
|
|
|
|
return [wrapper + x + wrapper for x in value]
|
|
|
|
|
|
|
|
|
2023-01-31 19:09:29 +00:00
|
|
|
class FilterModule(object): # noqa
|
2020-08-18 13:10:09 +00:00
|
|
|
def filters(self):
|
|
|
|
return {"wrap": wrap}
|