askama/testing/tests/ui/loop-fields.stderr
René Kijewski 50e0a96481 Rename LoopItem::index to LoopItem::index0
That's what the element is called in the template syntax.

Also refactor `Generator::visit_attr()` at bit to make it more readable.
Also add `__askama` prefix to `_len`.
2025-06-11 18:53:42 +02:00

8 lines
287 B
Plaintext

error: unknown loop variable `index1`
--> UnknownLoopField.txt:1:24
"loop.index1 }} {% endfor %}"
--> tests/ui/loop-fields.rs:7:14
|
7 | source = "{% for _ in 0..10 %} {{ loop.index1 }} {% endfor %}",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^