{%- macro render_affiliation(person) -%} {% set affiliation = template_hook('custom-affiliation', person=person) %} {%- if affiliation -%} {{ affiliation }} {%- else -%} {% set details = person.affiliation_details %} {%- if details -%} {%- set uuid = uuid() -%} {#--#} {#--#} {{ details.name }}{#--#} {#--#} {%- elif person.affiliation -%} {{ person.affiliation }} {%- endif -%} {%- endif -%} {%- endmacro -%}