Describe the bug
Can't access child's root level defined variables inside an inherited block, either by let or decl.
I don't want to define the variables at struct definition level (it's rendering logic and i want to keep it in a template), nor inside the block because it gets computed once and shared between multiple block.
To Reproduce
Parent template
{% block title %}{% endblock %}
Child template
{% extends "parent.html.j2" %}
{% let test_variable = "Hello" %}
{% block title %}
{{- test_variable -}}
{% endblock %}
Error: no field 'test_variable' on type
Askama version
0.15.1
Rust version
rustc 1.90.0 (1159e78c4 2025-09-14
Describe the bug
Can't access child's root level defined variables inside an inherited block, either by
letordecl.I don't want to define the variables at struct definition level (it's rendering logic and i want to keep it in a template), nor inside the block because it gets computed once and shared between multiple block.
To Reproduce
Parent template
Child template
Error: no field 'test_variable' on typeAskama version
0.15.1
Rust version
rustc 1.90.0 (1159e78c4 2025-09-14