{% macro single_ref(objectId, subreference, human_reff) -%}
  • {{ human_reff }}
  • {%- endmacro %} {% macro reff_dict(objectId, reffs) -%} {% for human_reff, dict_or_reff in reffs.items() %} {% if dict_or_reff|is_str %} {{ single_ref(objectId, dict_or_reff, human_reff) }} {% else %} {% endif %} {% endfor %} {%- endmacro %} {% macro hierarchical_dispatcher(objectId, reffs, citation) -%} {{ reff_dict(objectId, (reffs|hierarchical_passages(citation))) }} {%- endmacro %}