Open prateekbansal opened 2 years ago
Hi, If you have control over array I think your solution is to do the following payload emulation {data:[{ title: "foo", id: 1 }, { title: "bar", id: 2}]} {%- for val in data%}
{{val.title}} / {{val.id}}
{%- endfor %} HTH
I am trying to write a Custom Extension which gets invoked inside the for-loop. Here in the example below the
sectionTop2
variable is an array something like:My template code looks like this:
where I have a custom extension "val1"
In the
run
function, I was expecting the context to haveoneSectionTop2
property available, but it isn't there. The propertysectionTop2
is present though.I want to know if this is expected or am I doing something wrong?