{%- if item.name is defined -%} {{- item.name -}} {%- else -%} {{ item.service | upper }} server at %h {%- endif -%} _{{ item.service | lower }}._tcp {{ item.port | int }} {% for record in item.txt_records | default([]) %} {{ record }} {% endfor %}