tera icon indicating copy to clipboard operation
tera copied to clipboard

about hashmap

Open dingchenghong opened this issue 2 years ago • 0 comments

i have a hashmap in context ,eg: let vo: HashMap<u8, String> = HashMap::new(); then in my html template file it is: {% for k, v in vo %} {% if k == 5 %}

key is 5

{% else %}

key is not 5

{% endif %} {% endfor %} i had inserted a 5 key into vo, but it do not work. it can get the value but can not enter {% if k == 5 %} , i do not know why

dingchenghong avatar Jul 21 '23 08:07 dingchenghong