dgeni-markdown
Version:
dgeni markdown template for generating documentation from source code
10 lines (8 loc) • 306 B
Markdown
{% macro typeList(types) -%}
{% for typeName in types %}* {$ typeName $}{% endfor %}
{%- endmacro -%}
{%- macro directiveParam(name, type, join, sep) %}
{%- if type.optional %}[{% endif -%}
{$ name | dashCase $}{$ join $}{$ type.name $}{$ sep $}
{%- if type.optional %}]{% endif -%}
{% endmacro -%}