{% macro typeList(types) -%} {% for typeName in types %}{$ typeName | escape $}{% endfor %} {%- endmacro -%} {%- macro paramTable(params) %} {% for param in params %} {% endfor %}
Param Type Details
{$ param.name $} {% if param.alias %}| {$ param.alias $}{% endif %} {% if param.optional %}
(optional)
{% endif %}
{$ typeList(param.typeList) $} {$ param.description | marked $} {% if param.defaultValue %}

(default: {$ param.defaultValue $})

{% endif %}
{% endmacro -%} {%- macro directiveParam(name, type, join, sep) %} {%- if type.optional %}[{% endif -%} {$ name | dashCase $}{$ join $}{$ type.description $}{$ sep $} {%- if type.optional %}]{% endif -%} {% endmacro -%} {%- macro functionSyntax(fn) %} {%- set sep = joiner(', ') -%} {% marked -%} `{$ fn.name $}({%- for param in fn.params %}{$ sep() $} {%- if param.type.optional %}[{% endif -%} {$ param.name $} {%- if param.type.optional %}]{% endif -%} {% endfor %});` {%- endmarked %} {% endmacro -%} {%- macro typeInfo(fn) -%}
{$ typeList(fn.typeList) $} {$ fn.description | marked $}
{%- endmacro -%}