{% load dump_die %} {# for each object to output #} {% for filename, linenumber, obj_name, obj, function_doc, root_index_start, root_index_end, original_obj in objects %} {# If it is not the first object, add a horizontal line to separate #} {% if not forloop.first %}
{% endif %}
{% if filename and linenumber %} File: {{ filename }}, Line: {{ linenumber }}
{% endif %} {# If dumped object has function_docs, assume function. Otherwise object. #} {% if function_doc %} {# Display the name of the dumped object so long as not None #} {% if obj_name is not None %} {% for entry in obj_name %}{{ entry.value }}{% endfor %} : {% else %} Unknown Function: {% endif %} {# Handle function doc output. #} {% if multiline_function_docs %} {{ function_doc|linebreaks }} {% else %} {{ function_doc }} {% endif %} {% else %} {# Display the name of the dumped object so long as not None #} {% if obj_name is not None %} {% for entry in obj_name %}{{ entry.value }}{% endfor %} : {% else %} Unknown Object: {% endif %} {# Use dump_object template tag to dump object #} {% dump_object obj obj None 0 0 root_index_start root_index_end original_obj %} {% endif %}
{% endfor %}