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