mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00

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`.
8 lines
287 B
Plaintext
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 %}",
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|