{# Defines macros for reusable templates. #} {% macro property(property) -%} {% include 'property.template.html' %} {% endmacro %} {% macro propertyInterface(property) -%} {% include 'property-interface.template.html' %} {% endmacro %} {% macro propertyEnum(property) -%} {% include 'property-enum.template.html' %} {% endmacro %} {% macro propertyList(propertyList, type) -%} {% include 'property-list.template.html' %} {% endmacro %} {% macro class(class) -%} {% include 'class.template.html' %} {% endmacro %} {% macro interface(interface) -%} {% include 'interface.template.html' %} {% endmacro %} {% macro enum(enum) -%} {% include 'enum.template.html' %} {% endmacro %} {% macro example(example) -%} {% include 'runnableExample.template.html' %} {% endmacro %} {%- macro directiveProp(property, join, sep) %}{%- if property.isDirectiveInput -%}{$ property.directiveInputAlias | dashCase | replace("'","") $}{$ join $}{$ property.type | escape | replace('{', '{') | replace('}', '}') | replace("@", "@") $}{$ sep $}{%- elif property.isDirectiveOutput -%}({$ property.directiveOutputAlias | dashCase | replace("'","") $}){$ join $}{$ property.type | escape | replace('{', '{') | replace("@", "@") | replace('}', '}') $}{$ sep $}{%- else -%}p-{$ property.name | dashCase | replace("'","") $}{$ join $}{$ property.type | escape | replace('{', '{') | replace('}', '}') | replace("@", "@") $}{$ sep $}{%- endif -%}{% endmacro -%} {% macro methodList(methodList, type) -%} {% include 'method-list.template.html' %} {% endmacro %} {% macro method(method) -%} {% include 'method.template.html' %} {% endmacro %}
{%- if doc.ngModule.name -%}
import { {$ doc.ngModule.name $} } from '@po-ui/ng-{$ doc.package $}';
{%- else -%}
import { {$ doc.componentName $} } from '@po-ui/ng-{$ doc.package $}';
{%- endif -%}