{% macro render(p) %} {% set value = ('value="%s"' % p.default) if p.default else "" %} {% if p.type in ("file", 'image') and p.channel == 'input' %}
{% elif p.type in ("string", "integer", "float", 'image', 'file') %}
{% elif p.type in ("string-enumeration", "integer-enumeration", "float-enumeration") %}
{% for val in p.values %}
{% endfor %}
{% elif p.type == "boolean" %}
{% else %} Unhandled type {{ p.type }} {% endif %} {% endmacro %}

{{ model.name }}

Title {{ model.title }}
Description {{ model.description }}
Categories: {{ model.category }}
License: {{ model.license }}
contributor: {{ model.contributor }}

{% for group in model.parameter_groups %}
{{ group.label }}
{{ group.description }}
{% for p in group %} {{ render(p) }} {% endfor %}
{% endfor %}