not_iterable

Diagnostic `nanook::template::not_iterable`

Summary

value at `{0}` is not iterable — `{{% for %}}` needs a list, set, or map

Details

When this fires

A {% for x in path %} block pointed at a value that isn't a list, set, or map. The renderer needs something it can walk; scalars and bare structs don't qualify. Raised in Renderer::iterate.

What to check

For maps, the loop variable is (key, value) pairs. An empty collection is fine, the loop just runs zero times, this error means the type is wrong, not that it's empty.

broken: {% for x in trigger.value %}{{ x }}{% endfor %}
fixed:  {% for x in trigger.tags %}{{ x }} {% endfor %}
fixed:  {% for k, v in trigger.labels %}{{ k }}={{ v }} {% endfor %}