Robert Kaussow
0fa31f8998
Author: Robert Kaussow <mail@geeklabor.de> Date: Sat Aug 22 20:29:58 2020 +0200 fix docs
401 B
401 B
Simple filter to wrap all items form a list. Default will wrap items in single quotes but you can also pass a custom wrapper character.
Example
my_list:
- item1
- item2
{{ my_list | wrap | join(',') }}
# result:
# "'item1','item2'"
Or pass a custom wrapper:
my_list:
- item1
- item2
{{ my_list | wrap(wrapper='/') | join(',') }}
# result:
# "/item1/,/item2/"