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 %}
<p> key is not 5 </p>
{% 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
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
{% 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