NAME¶
Catmandu::Fix::Bind::list - a binder that computes Fix-es for every element in a
list
SYNOPSIS¶
add_field(demo.$append.test,1)
add_field(demo.$append.test,2)
do list(path => demo)
add_field(foo,bar)
end
# will produce
demo:
- test: 1
foo: bar
- test: 2
foo: bar
DESCRIPTION¶
The list binder will iterate over all the elements in a list and fixes the
values in context of that list.
CONFIGURATION¶
path¶
The path to a list in the data.
AUTHOR¶
Patrick Hochstenbach - Patrick.Hochstenbach@UGent.be
SEE ALSO¶
Catmandu::Fix::Bind