dgeni-alive
Version:
Live doc generator on top of Dgeni
36 lines (31 loc) • 871 B
HTML
{%- if doc.methods %}
<h2>Methods</h2>
<ul class="methods">
{%- for method in doc.methods %}
<li id="{$ method.name $}">
<h3 class="{% if method.deprecated != null %}member-deprecated{% endif %}">
<span class="title">{$ functionSyntax(method) $}</span>
{$ memberAccess(method) $}
{$ deprecatedOrSince(method) $}
</h3>
<div>{$ method.description | marked $}</div>
{% if method.params %}
<h4>Parameters</h4>
{$ paramTable(method.params) $}
{% endif %}
{% if method.this %}
<h4>Method's {% code %}this{% endcode %}</h4>
{$ method.this | marked $}
{% endif %}
{% if method.returns %}
<h4>Returns</h4>
{$ typeInfo(method.returns) $}
{% endif %}
{% if method.throws %}
<h4>Throws</h4>
{$ typeInfo(method.throws) $}
{% endif %}
</li>
{% endfor -%}
</ul>
{%- endif -%}