{%- if methodList.length -%}

Methods

{% for m in methodList %} {$ method(m) $} {% endfor %} {%- endif -%}