{% for clientName, clientData in clients.items() if clientData.output| length != 0%} {% endfor %} {% endfor %} {% endfor %} {% for clientName, clientData in clients.items() if clientData.input | length != 0%} {% for input in clientData.input %} {% if not loop.first%} {% endif %} {% for oClientName, oClientData in clients.items() if oClientData.output| length != 0%} {% for oPortName, oPortData in oClientData.output.items() %} {% set connected = [] %} {% endfor %} {% endfor %} {% endfor %} {% endfor %}
outputs{{clientName}}
inputs {% for clientName, clientData in clients.items() %} {% for output in clientData.output %} {{output }}
{{clientName}}
{{input }}
{% for con in oPortData.connections %} {% if con == clientName + ":" + input %} X {% if connected.append(1) %}{% endif %} {% endif %} {% endfor %} {% if not connected %} 0 {% endif %}