tera
tera copied to clipboard
about hashmap
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