Fix html rendering

This commit is contained in:
Austen Adler 2021-08-21 17:22:03 -04:00
parent a6ee7ad6bc
commit afb57a17ff

View File

@ -1,9 +1,9 @@
<!-- TODO: When refreshing, the selected element does not change -->
<!-- TODO: Do not use .to_string() for comparison -->
<select rust-input="change-template">
{% let selected_name = parameters.get_name() %}
{% for name in Parameters::get_names() %}
<option value="{{ name }}"
<!-- TODO: Do not use .to_string() for comparison -->
{% if selected_name == name.to_string() -%}
selected="selected"
{%- endif -%}