Add child display

go-parsed-example
Anthony Johnson 9 years ago
parent 808c1a090f
commit 181c7ea2a4

@ -13,3 +13,10 @@
{%- if obj.returns %} {%- if obj.returns %}
:rtype: {{ obj.returns.id }} :rtype: {{ obj.returns.id }}
{%- endif %} {%- endif %}
{% if obj.children -%}
{%- for child in obj.children|sort %}
{% macro render_child() %}{{ child.render() }}{% endmacro %}
{{ render_child()|indent(4) }}
{%- endfor %}
{%- endif %}

Loading…
Cancel
Save