{# Defines macros for reusable templates. #} {% macro method(method) -%} {% include 'method.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 %}

{$ doc.name $}

Module: {$ doc.ngModule.name $}

{%- if doc.services.length -%}

Services

{% for service in doc.services %} {$ class(service) $} {% endfor %} {%- endif -%} {%- if doc.directives.length -%}

Directives

{% for directive in doc.directives %} {$ class(directive) $} {% endfor %} {%- endif -%} {%- if doc.additionalClasses.length -%}

Additional classes

{% for other in doc.additionalClasses %} {$ class(other) $} {% endfor %} {%- endif -%}