Clean up python templates

go-templates
Eric Holscher 10 years ago
parent 3c7a80c263
commit d1dc81b8ba

@ -1,4 +1,4 @@
.. class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
.. py:class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
{% if obj.docstring %}

@ -25,7 +25,7 @@
{% endif %}
.. module:: {{ obj.name }}
.. py:module:: {{ obj.name }}
@ -39,7 +39,7 @@
{%- for obj_item in obj.item_map.get(item_type, []) %}
{% macro render() %}{{ obj_item.render() }}{% endmacro %}
{{ render()|indent(4) }}
{{ render()|indent(0) }}
{%- endfor %}
{%- endmacro %}

Loading…
Cancel
Save