{% macro build_widget_checkbox(param_group, widget) %} {{ widget.label }} {% endmacro %} {# https://ru.stackoverflow.com/questions/1241064 #} {% macro build_widget_number(param_group, widget) %}{{ widget.label }}{% endmacro %} {% macro build_widget_select(param_group, widget) %} {{ widget.label }} {% endmacro %} {% macro build_widget_watch(param_group, widget) %}{{ widget.label }}{% endmacro %} {% macro build_widget_watch_expr(param_group, widget) %} {{ widget.label }}{{ '{{ ' ~ widget.expr ~ ' }}' }} {% endmacro %} {% macro build_widget_modulation_modcod(param_group, widget) %} {{ widget.label }} {% endmacro %} {% macro build_widget_modulation_speed(param_group, widget) %} {{ widget.label }} {% endmacro %} {% macro build_widget_flex_container(param_group, widget) %}
{% for w in widget.childs %}{{ build_widget(param_group, w) | indent(4, true) }}{% endfor %}
{% endmacro %} {% macro build_widget_settings_container(param_group, widget) %}
{% for w in widget.childs %}{{ build_widget(param_group, w) | indent(4, true) }}{% endfor %}
{% endmacro %} {% macro build_widget_ip_address(param_group, widget) %} {{ widget.label }} {% endmacro %} {% macro build_widget(param_group, widget) %}{% if widget.widget == 'flex-container' %}{{ build_widget_flex_container(param_group, widget) }} {% elif widget.widget == 'settings-container' %}{{ build_widget_settings_container(param_group, widget) }} {% elif widget.widget == 'h2' %}{{ widget.label }} {% elif widget.widget == 'h3' %}{{ widget.label }} {% elif widget.widget == 'submit' %} {% elif widget.widget == 'checkbox' %}{{ build_widget_checkbox(param_group, widget) }} {% elif widget.widget == 'number' %}{{ build_widget_number(param_group, widget) }} {% elif widget.widget == 'watch' %}{{ build_widget_watch(param_group, widget) }} {% elif widget.widget == 'watch-expr' %}{{ build_widget_watch_expr(param_group, widget) }} {% elif widget.widget == 'select' %}{{ build_widget_select(param_group, widget) }} {% elif widget.widget == 'modulation-modcod' %}{{ build_widget_modulation_modcod(param_group, widget) }} {% elif widget.widget == 'modulation-speed' %}{{ build_widget_modulation_speed(param_group, widget) }} {% elif widget.widget == 'ip-address' %}{{ build_widget_ip_address(param_group, widget) }} {% else %}

Widget '{{ widget.widget }}' not defined!

{{ widget }}

{% endif %} {% endmacro %}