{% load dump_die %} {# for each object to output #} {# A callable obj or original_obj is wrapped in NotCalledInTemplates, so that looking it up here doesn't call it. #} {# Pass them on to dump_object, which unwraps them, but don't use their values here. See dump_die.py. #} {% 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 obj|is_dump_break %} {# A break added with dump.br(): a blank row, one or more lines tall, with a line across it. #} {% with size=obj.size|default:break_size %}
{% endwith %} {% else %}
{% 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 %}{% if entry.space_before %} {% endif %}{{ 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 %}{% if entry.space_before %} {% endif %}{{ entry.value }}{% endfor %} : {% else %} Unknown Object: {% endif %} {# Use dump_object template tag to dump object #} {% dump_object obj obj None 0 original_obj False root_index_start root_index_end %} {% endif %}
{% endif %} {% endfor %}