{% set path = namespace(path="") %}
{% for bit in python_document["name"].split(".") %}
{% if loop.index == 1 %}
{% set path.path = bit %}
{% else %}
{% set path.path = path.path + "." + bit %}
{% endif %}
{% if python_document["classes"] %}
{% for class in python_document["classes"] %}
Class: {{ class.name }}
{% if "arguments" in class %}
{% with name=class.name, arguments=class.arguments %}
{% include "bundle_python_docs:reference_arguments.html" %}
{% endwith %}
{% endif %}
{{ (class.docstring or class.comments or "No Info.") | render_markdown | safe }}
{% for function in class.functions %}
Function: {{ function.name }}
{% with name=function.name, arguments=function.arguments %}
{% include "bundle_python_docs:reference_arguments.html" %}
{% endwith %}
{{ (function.docstring or function.comments or "No Info.") | render_markdown | safe }}