{% macro show_address(address, doc, fieldname, select_address=False) %} {% set selected=address.name==doc.get(fieldname) %}