WireViz/src/wireviz/templates/connector.html
Laurier Loiselle b687a9f134
WIP: add templates connector
doesn't support all current features of the connectors.
We should at least support those before updating the template
2023-04-21 13:08:05 -04:00

27 lines
740 B
HTML
Generated

<!-- Connector definition Table !-->
<!-- Has 3 columns !-->
<table border="0" cellborder="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
<!-- Header !-->
<tr>
<td colspan="{{ columns }}">
<b> {{ designator }} </b>
</td>
</tr>
<tr>
<td> {{ type }} </td>
<td> {{ subtype }} </td>
{% if show_pincount %} <td > {{ pincount }}-pin </td> {% endif %}
</tr>
<!-- Pins !-->
{% for pin in pins %}
<tr>
{% if use_left %} <td port="p{{ pin.index + 1 }}l"> {{ pin.id }} </td> {% endif %}
<td colspan="2"> {{ pin.label }} </td>
{% if use_right %} <td port="p{{ pin.index + 1 }}r"> {{ pin.id }} </td> {% endif %}
</tr>
{% endfor %}
<!-- Additional Components !-->
</table>