graycoreio/daffodil

View on GitHub
tools/dgeni/src/templates/api/interface.template.html

Summary

Maintainability
Test Coverage
{% extends 'base.template.html' -%}

{% macro member(member) -%}
  {% include 'member.template.html' %}
{% endmacro %}

{% block body %}
{% if doc.decorators[0].argumentInfo[0].selector %}
<span class="selectors__label">Selector:</span>
<span class="selectors__name"><code>{$ doc.decorators[0].argumentInfo[0].selector $}</code></span>
{% endif %}

<h2>Properties</h2>
<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  {%- for i in range(0, doc.members.length) %}
    {$ member(doc.members[i]) $}
  {% endfor -%}
</table>
{% endblock %}