UNPKG

suh-dgeni-ngdocs

Version:

A package to generate ng-docs similar to what is used on AngularJS website.

38 lines (30 loc) 833 B
{%- if doc.methods %} <h2>Methods</h2> <ul class="methods uk-list"> {%- for method in doc.methods %} <li id="{$ method.name $}"> <hr class="uk-grid-divider"> <h3 class="uk-text-primary">{$ functionSyntax(method) $}</h3> <div>{$ method.description | marked $}</div> {% if method.todos %} {$ todosList('Todos',method.todos) $} {% endif %} {% if method.notes %} {$ todosList('Notes',method.notes) $} {% endif %} {% 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 %} </li> {% endfor -%} </ul> {%- endif -%}