{# Defines macros for reusable templates. #} {% macro method(method) -%} {% include 'method.template.html' %} {% endmacro %} {% macro function(item) -%} {% include 'function.template.html' %} {% endmacro %} {% macro property(property) -%} {% include 'property.template.html' %} {% endmacro %} {% macro methodList(methodList) -%} {% include 'method-list.template.html' %} {% endmacro %} {% macro propertyList(propertyList) -%} {% include 'property-list.template.html' %} {% endmacro %} {% macro class(class) -%} {% include 'class.template.html' %} {% endmacro %} {% macro interface(interface) -%} {% include 'interface.template.html' %} {% endmacro %} {% macro typeAlias(alias) -%} {% include 'type-alias.template.html' %} {% endmacro %} {% macro constant(constant) -%} {% include 'constant.template.html' %} {% endmacro %}
import { {$ doc.primaryExportName $} } from '{$ doc.moduleImportPath $}';
{%- if doc.services.length -%} {% for service in doc.services %}
{$ class(service) $}
{% endfor %} {%- endif -%} {%- if doc.directives.length -%} {% for directive in doc.directives %}
{$ class(directive) $}
{% endfor %} {%- endif -%} {%- if doc.classes.length -%} {% for other in doc.classes %}
{$ class(other) $}
{% endfor %} {%- endif -%} {%- if doc.interfaces.length -%} {% for item in doc.interfaces %}
{$ interface(item) $}
{% endfor %} {%- endif -%} {%- if doc.functions.length -%} {% for item in doc.functions %}
{$ function(item) $}
{% endfor %} {%- endif -%} {%- if doc.typeAliases.length -%} {% for item in doc.typeAliases %}
{$ typeAlias(item) $}
{% endfor %} {%- endif -%} {%- if doc.constants.length -%} {% for item in doc.constants %}
{$ constant(item) $}
{% endfor %} {%- endif -%}