{% extends 'base.html' %} {% block content %}
{% for func in io %} {% if func.type == 'print' %} {{func.attributes.output | safe}} {% elif func.type == 'input' %} {% set func_attrs = func.attrs.items() | map("join", "=") | join(" ") %}

{% if func.attrs.type == "button" %} {% set _ = func.attrs.update({'type': 'submit'}) %} {% set func_attrs = func.attrs.items() | map("join", "=") | join(" ") %} {% if func.options %} {% for option in func.options %} {% endfor %} {% else %} {% endif %} {% elif func.attrs.type == "radio" or func.attrs.type == "checkbox" %} {% if func.options %} {% for option in func.options %} {% endfor %} {% else %} {% endif %} {% else %} {%endif%}

{% endif %} {% endfor %} {% if error %} Error: {{error}} {% endif %}

{% endblock %}