Add child display

This commit is contained in:
Anthony Johnson 2015-05-30 18:42:06 -07:00
parent 808c1a090f
commit 181c7ea2a4

View File

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